]> git.mdlowis.com Git - proto/labwc.git/commit
src/ssd: fix tiling via keybind when maximized
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Fri, 25 Aug 2023 11:22:23 +0000 (13:22 +0200)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Fri, 25 Aug 2023 13:54:22 +0000 (15:54 +0200)
commit72936ccb3ebef166b5c50c871fb83f1a01d1ec4f
treec744dfb49bd03a1f497b30664abecc2a78276a0b
parentf42f5f41c5f2f7090de55a6e21fddfbfde608285
src/ssd: fix tiling via keybind when maximized

The previous PR introduced an issue with tiling based actions
like SnapToEdge and SnapToRegion using outdated SSD margin
values when called via keybind while maximized. That resulted
in wrong offsets for the tiled windows.

This commit restores the functionality by forcing a re-calculation
of the SSD margin when changing the maximized state.

Thanks to @Flrian for reporting the issue via IRC.
include/ssd.h
src/ssd/ssd.c
src/view.c