]> git.mdlowis.com Git - proto/labwc.git/commit
xwayland: connect commit and surface_destroy handlers together
authorJohn Lindgren <john@jlindgren.net>
Sat, 8 Nov 2025 03:20:18 +0000 (22:20 -0500)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 9 Nov 2025 18:27:39 +0000 (18:27 +0000)
commitb6f7bacdde6580ac52789ca5c7109600d2f2d585
tree26d0a76cd8fdb8e60e5d7c5a2daa29c4ef772e72
parent0501f0ac9ebb85296d016175e162d66d08e52e1c
xwayland: connect commit and surface_destroy handlers together

Factor out set_surface() which consolidates connecting/disconnecting
the wlr_surface event listeners in one place.

In theory, this means we can receive commit events for minimized views.
However, with a test app that resizes itself, I didn't see any change,
i.e. the commits still don't come through until un-minimize. It's
possible they are being filtered at wlroots or protocol level.

Also remove an old, semi-related TODO from view.c.
src/view.c
src/xwayland.c