]> git.mdlowis.com Git - proto/labwc.git/commit
interactive: reset tiled state when dragging out of snapped position
authorAndrew J. Hesford <ajh@sideband.org>
Tue, 23 Jan 2024 00:04:16 +0000 (19:04 -0500)
committerAndrew J. Hesford <ajh@sideband.org>
Tue, 30 Jan 2024 12:30:07 +0000 (07:30 -0500)
commit9f51384b6ac73dba404b636f356bf942a772a14d
tree6fb2169c058d32cf0e2635b6734689c7ebcb36a0
parentc1a2dd3e27429d729041eaa05cf43810b1d46e6e
interactive: reset tiled state when dragging out of snapped position

This ensures that client-side decorations (and maybe other client
behaviors) behave intuitively during interative moves, but means that

    drag to snapped position -> drag to maximize -> un-maximize

will put the window back to its natural geometry (saved before the first
snap) rather than back to the snapped position. This is a change in
behavior, but a) simplifies the logic a bit, because the tiled state is
always in sync with the window geometry and b) in some sense is "more
correct", because the window has been "visually" un-tiled the minute the
window starts dragging.

Note that maximizing using an action (including the button) a window
that has been snapped and then un-maximizing the window will put the
window back to the snapped position, as it always has.
src/interactive.c