]> git.mdlowis.com Git - proto/labwc.git/commit
view: try to honor original geometry with layout changes
authorAndrew J. Hesford <ajh@sideband.org>
Mon, 1 Jan 2024 02:39:06 +0000 (21:39 -0500)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 6 Jan 2024 19:04:11 +0000 (19:04 +0000)
commitc229f6edc0fb5a2a3d6ef83a71e7474e241125a5
treec6b68e633a6b6d14c4d07c95e19dfb72ac6a9c15
parent1b5af864023acedc7a84e4958436725d7017adef
view: try to honor original geometry with layout changes

Whenever the output layout changes, each view's original geometry will
be captured as last_layout_geometry (if it has not already been captured
by a previous layout change), which will remain valid unless the user
modifies the view's geometry (i.e., by tiling, maximizing, moving,
resizing or full-screening). On subsequent output layout changes, views
with valid last_layout_geometry will be back to their original position
if possible, or else to the closest possible output.
include/view.h
src/interactive.c
src/view.c