]> git.mdlowis.com Git - proto/labwc.git/commit
view: expose view_set_maximized() instead of view_restore_to()
authorJohn Lindgren <john@jlindgren.net>
Mon, 1 Sep 2025 15:49:24 +0000 (11:49 -0400)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 1 Sep 2025 19:44:09 +0000 (20:44 +0100)
commit6d2140c4b737f643b22164b4fff21af499a1aded
tree030a9cb3cdcd46a2b1e9d1fba98d8632a0c0b06b
parent72a5df16ea6ca713133d465c559b8e1ec7a1779c
view: expose view_set_maximized() instead of view_restore_to()

view_restore_to() (which is just set_maximized() + view_move_resize())
hasn't aged well and doesn't line up with typical usage anymore:

 - it's missing view_set_untiled(), which has to be called separately
 - it always forces view_move_resize() even when that's not needed
 - it doesn't allow un-maximizing only one axis (see next commit)
 - the fullscreen check is unnecessary (already checked in callers)

Eliminate it and just expose view_set_maximized() instead.

No functional change intended in this commit.
include/view.h
src/input/cursor.c
src/interactive.c
src/view.c