]> git.mdlowis.com Git - proto/labwc.git/commit
view: less hacky support for minimize-before-map
authorJohn Lindgren <john@jlindgren.net>
Sat, 8 Nov 2025 03:38:32 +0000 (22:38 -0500)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 9 Nov 2025 18:27:39 +0000 (18:27 +0000)
commit79fbb611e019583c87158aec1879dd952a5d0c99
tree4c00f8a786f4e508a4a57edcc91be03be3928933
parentb6f7bacdde6580ac52789ca5c7109600d2f2d585
view: less hacky support for minimize-before-map

The previous "minimal fix" (5148c2aa3140) worked but was a bit of a
hack, as it basically un-minimized and then immediately minimized the
view again at map. It's not actually too difficult to make the map
handlers aware of minimized views, eliminating the need for the hack.

Note: this depends on the previous commit ("xwayland: connect commit
and surface_destroy handlers together") otherwise the xwayland map
handler registers the commit handler twice, leading to a crash.
src/foreign-toplevel/foreign.c
src/view-impl-common.c
src/view.c
src/xdg.c
src/xwayland.c