]> git.mdlowis.com Git - proto/labwc.git/commit
view: update top layer visiblity at unmap instead of destroy
authorJohn Lindgren <john@jlindgren.net>
Fri, 7 Nov 2025 19:32:30 +0000 (14:32 -0500)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Sun, 9 Nov 2025 05:46:59 +0000 (06:46 +0100)
commit6de18b9afde9349952ceb1226ccfaa02d56619a2
treefbe359f9a9a77710d4543f32de916a340359f9a3
parentc8167c8ee0c001393bbaaa149b9fb16dd6e46d5a
view: update top layer visiblity at unmap instead of destroy

It's possible for a fullscreen xwayland view to be unmapped without
being destroyed. In this case, we need to update top layer visibility,
otherwise panels and the like will remain hidden.

Since unmap is always called before destroy, it's sufficient to do the
update only in view_impl_unmap() and not in view_destroy().

Adaptive sync logic needs work still, but I tried to minimize changes
to it since I don't have hardware to test it.
src/view-impl-common.c
src/view.c