mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
xwayland, data-device: fix surface state on unmap
This commit makes sure surface->mapped is true when the unmapped event is emitted. This is necessary because listeners can only damage surfaces that are mapped. This is similar to the fact that the destroy event is emitted before any destruction is actually made. Fixes https://github.com/swaywm/sway/issues/3568
This commit is contained in:
parent
fd0b625ab9
commit
81ed1efe4f
2 changed files with 2 additions and 2 deletions
|
|
@ -96,8 +96,8 @@ static void drag_icon_set_mapped(struct wlr_drag_icon *icon, bool mapped) {
|
|||
icon->mapped = true;
|
||||
wlr_signal_emit_safe(&icon->events.map, icon);
|
||||
} else if (!mapped && icon->mapped) {
|
||||
icon->mapped = false;
|
||||
wlr_signal_emit_safe(&icon->events.unmap, icon);
|
||||
icon->mapped = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue