mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
xwm: only emit unmap notify once
This commit is contained in:
parent
e5ee01254b
commit
1be650d78a
1 changed files with 4 additions and 2 deletions
|
@ -578,8 +578,10 @@ static void handle_unmap_notify(struct wlr_xwm *xwm,
|
||||||
}
|
}
|
||||||
xsurface->surface = NULL;
|
xsurface->surface = NULL;
|
||||||
|
|
||||||
xsurface->mapped = false;
|
if (xsurface->mapped) {
|
||||||
wl_signal_emit(&xsurface->events.unmap_notify, xsurface);
|
xsurface->mapped = false;
|
||||||
|
wl_signal_emit(&xsurface->events.unmap_notify, xsurface);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void handle_property_notify(struct wlr_xwm *xwm,
|
static void handle_property_notify(struct wlr_xwm *xwm,
|
||||||
|
|
Loading…
Reference in a new issue