]> git.mdlowis.com Git - proto/labwc.git/commit
view: restore initially-maximized window position after unplug/plug
authortokyo4j <hrak1529@gmail.com>
Mon, 1 Sep 2025 08:52:06 +0000 (17:52 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 1 Sep 2025 19:16:37 +0000 (20:16 +0100)
commit72a5df16ea6ca713133d465c559b8e1ec7a1779c
tree0b222ceae36c2968de5173ef4d09ed1c8dd94629
parente6b5d91b638de9447a5e36fd11ee0d93abf5cda2
view: restore initially-maximized window position after unplug/plug

`update_last_layout_geometry()` stores `view->natural_geometry` in
`view->last_layout_geometry`, but it's empty for initially-maximized
windows, so their positions were not restored after outputs are
unplugged and plugged (also when VT switching in wlroots 0.19.0).

This commit sets the fallback natural geometry (at the center of the
output) so that initially-maximized windows reappears in the same output.
src/view.c