Kim Woelders
8878d862fd
background: Discard broken backgrounds when opening configuration dialog
2022-05-13 15:35:10 +02:00
Kim Woelders
f640a09346
moveresize: Fix screen edge resistance for grouped windows
...
Previously a window group being moved would not be affected by the
screen edge resistance.
Now the dragged window is subject to the screen edge resistance.
2022-05-09 15:49:46 +02:00
Kim Woelders
ebd3b74f49
moveresize: Move SnapEwin() to where it is used.
2022-05-09 15:49:46 +02:00
Kim Woelders
a68018d795
moveresize: Enable configuring edge restistance in dialog
2022-05-09 14:05:24 +02:00
Kim Woelders
f8d7cb8c00
arrange: Introduce screen struts
...
Can be used to restrict area where windows are normally placed.
Works like struts set by clients with _NET_WM_STRUT.
Sugested by Milan Maljković.
2022-05-03 19:20:19 +02:00
Kim Woelders
398622f986
arrange: Refactor SnapEwin()
2022-05-03 19:20:19 +02:00
Kim Woelders
de008aa637
session: Fix broken session id handling
...
Also fixes a minor memory leak.
2022-05-01 20:19:43 +02:00
Kim Woelders
c350cbcf4b
pinning: Remember across restart
2022-05-01 20:19:43 +02:00
Kim Woelders
5938226ffd
main: Don't start edox on first startup
...
The edox documentaion is rather dated - time to drop it.
2022-05-01 20:19:43 +02:00
Kim Woelders
cf5927deb8
Clamp window position on move
...
In non-compositing mode the x/y coordinate limts are [-32768; 32767] as
should be expected. If moving beyond these values the coordinates are
just set modulo 2^16 (like in a signed 16 bit integer) and most likely
this isn't noticed anywhere.
In compositing mode the coordinates apperently must be clamped some
more, but it is not clear why or where the limit is.
The problem manifests itself in that a window moved "too far" seems to
have disappeared when moving it back on screen, possibly because the
name pixmap is invalidated.
Shading/unshading the window makes it re-appear.
The problem can be seen when dragging a window far off a (small) pager.
2022-04-30 20:26:41 +02:00
Kim Woelders
dc5db9e4a1
CM: Adjust shadowing conditions some more
...
Re-enable sharp shadows on shaped windows.
Should be ok now that sharp shadowing shaped windows has been fixed.
2022-04-29 20:01:17 +02:00
Kim Woelders
5b071a0e26
CM: Fix sharp shadows when window is shaped
...
This once did work. I wonder when it broke.
2022-04-29 19:53:08 +02:00
Kim Woelders
f07b6a74e5
ipc: Add custom format window_list
2022-04-28 19:26:58 +02:00
Kim Woelders
546c1bb2df
dialogs: Text cleanups
...
In general only capitalize first word.
Capitalization of words was somewhat inconsistent throughout the
dialogs.
2022-04-24 12:41:25 +02:00
Kim Woelders
a4cd43578d
dialogs: Fixup after recent layout changes
2022-04-24 12:22:58 +02:00
Kim Woelders
5f23c8fce9
arrange: Fix C++ build
2022-04-24 11:39:50 +02:00
Kim Woelders
3ad01fdda7
focus: IPC help tweaks
...
- Mention next, prev, and focus mode ?
- Some wording and format changes
2022-04-22 17:00:05 +02:00
Kim Woelders
6d6d1c8dc4
ipc: Debug tweaks
2022-04-22 13:23:32 +02:00
Kim Woelders
a09b13260a
dialogs: Drop re-centering combined dialog on item change
...
Gives maybe a bit more smooth appearance.
Allows it to be moved away and not re-centered on change.
2022-04-22 08:02:23 +02:00
Kim Woelders
3c42724f96
Dialog layout adjustments
...
In general left-align text labels.
2022-04-22 07:41:58 +02:00
Kim Woelders
8090324299
moveresize: Refactor some conditions for readability
2022-04-22 07:35:28 +02:00
Kim Woelders
a5228ad9e0
moveresize: Remove long time unused constrained move code
...
Not active because doMoveConstrained() has been disabled for ages.
Was effectively equivalent to setting misc.snap.screen_snap_dist to
large value.
2022-04-22 07:35:20 +02:00
Kim Woelders
04f040199c
moveresize: Remove long time unused swapmove code
...
Not active because doSwapMove() has been disabled for ages.
Not resurrecting, doesn't seem to work properly.
2022-04-22 07:35:00 +02:00
Kim Woelders
e789b1740e
moveresize: Remove disabled nogroup move functions
...
Nogroup operations have been implemented by other means.
2022-04-21 09:08:47 +02:00
Kim Woelders
5e7ca9c93e
containers: Configuration saving tweaks - fixup
...
Forgot to change file name buffer, container configuration changes
could get lost.
2022-04-19 18:11:21 +02:00
Kim Woelders
9cfe1e2577
Fix some problems with resize-by-keyboard
...
If using the pointer while in resize-by-keyboard mode one could run into
a couple of issues, among others that the window outline frame might not
be taken down.
To fix this the pointer is now also grabbed in resize-by-keyboard mode
but pointer events ignored.
2022-04-19 17:05:55 +02:00
Kim Woelders
0eb986a943
ipc: win_op help updates
2022-04-18 20:41:11 +02:00
Kim Woelders
34f007d088
Add window option to pass-through pointer events
2022-04-16 11:26:17 +02:00
Kim Woelders
edd9216610
arrange: Disable ARRANGE_BY_POSITION mode
...
Rather perculiar thing..
2022-04-04 18:35:45 +02:00
Kim Woelders
684e911c9e
arrange: Simplify/speed up by using qsort(), cosmetics
2022-04-04 18:35:45 +02:00
Kim Woelders
b3e5758442
arrange: Minor tweak in SnapEwin()
...
Use EwinListGetAll() instead of EwinListOrderGet().
ListWinGroupMembersForEwin() uses EwinListGetAll() (i.e. the stacking
list) so it seems more consistent to use the same throughout this
function.
2022-04-04 13:21:18 +02:00
Kim Woelders
c5ffe964b0
arrange: Use object order list when arranging
...
Previously the stacking order was used. This meant that windows of the
same size after stacking changes might be shuffled around when doing e.g.
"desk arrange", which does not seem right.
2022-04-04 13:21:18 +02:00
Kim Woelders
31cb37f935
arrange: Remove pointless call to EwinListGetAll()
2022-04-04 13:21:18 +02:00
Kim Woelders
08b70658d3
stacking: Hold all objects in the order list
...
I.e. not just the EWins.
2022-04-04 13:17:53 +02:00
Kim Woelders
66c69bbcc6
stacking: Cache EWin lists
...
Probably not a major gain but avoids re-generating the list on every
EwinListStack/OrderGet call.
2022-04-04 13:17:53 +02:00
Kim Woelders
fd9270d4d2
stacking: Refactor EwinListStackGet()
2022-04-04 12:49:37 +02:00
Kim Woelders
f171611d89
stacking: Cosmetics, preparing for other changes
2022-04-04 12:49:37 +02:00
Kim Woelders
a67b247ff2
stacking: Rename EwinListStack to EobjListStack
...
More appropriate, it holds all the EObjs.
2022-04-04 12:49:37 +02:00
Kim Woelders
33dc371131
stacking: Remove unused EwinListStackGetTop()
2022-04-04 12:49:37 +02:00
Kim Woelders
49c4ddcb5e
CM: Adjust shadowing conditions some more
...
Regular clients:
- Disable if fullscreen
- Disable if *client* is shaped (<- changed with this commit)
Now shaped border themes like winter again can have shadows like
before the previous fix (a41b2209
).
Override-redirect:
- Disable if shaped
2022-04-03 17:05:24 +02:00
Kim Woelders
dabf1ba150
Fix imageclass flip/rotate for real
...
The fix in 9d678fc554
forgot to call
EImageOrientate() in the !Conf.memory_paranoia case.
2022-03-31 13:52:04 +02:00
Kim Woelders
956eb86c4d
focus list: Fix a couple of glitches with outline window
...
- Hide the outline window on Escape from focus list
- Hide the outline window when cycling to an offscreen window
2022-03-31 11:03:14 +02:00
Kim Woelders
44c01a009b
Accept client window events a bit earlier
...
Set the cut-off event serial number to the serial number of the window's
map request.
Fixes cases where a client sends a client message immediately after
mapping.
2022-03-31 10:29:10 +02:00
Kim Woelders
73d9250601
Remove stray quote in help text
2022-03-31 09:44:45 +02:00
Kim Woelders
a41b220904
CM: Adjust shadowing conditions
...
Treat all (non-off) shadow modes alike
Disable if shaped (OR too)
Disable if fullscreen (regular clients)
2022-03-30 22:18:20 +02:00
Kim Woelders
83a13eb6bf
CM: Fix initial shaped state on OR windows
2022-03-30 22:18:20 +02:00
Kim Woelders
d92bc5a90a
backgrounds: Drop 'use_bg' IPC command (but not entirely)
...
Use "bg use ..." instead of "use_bg ..."
It looks like there are users out there (epplets, feh), so for
compatibility handle it in the ipc compat department.
2022-03-11 06:41:28 +01:00
Kim Woelders
dffa629b47
backgrounds: Drop most calls to autosave()
...
autosave() saves config and snapshot stuff but not the background
configuration.
2022-03-10 21:18:02 +01:00
Kim Woelders
799b267f28
ipc: Return error message on unknown command
2022-03-10 21:18:02 +01:00
Kim Woelders
f633be2c70
session: Do call module exit functions on X disconnect
...
Various configuration files should be written on exit.
In particular background configuration changes could be lost.
2022-03-10 20:24:42 +01:00