mirror of
https://github.com/swaywm/sway.git
synced 2024-11-11 21:14:10 +01:00
Merge pull request #1834 from emersion/xwayland-no-unmap-on-destroy
Don't unmap on destroy, this is already guaranteed by wlroots
This commit is contained in:
commit
6e6decf385
@ -257,11 +257,6 @@ static void handle_map(struct wl_listener *listener, void *data) {
|
|||||||
static void handle_destroy(struct wl_listener *listener, void *data) {
|
static void handle_destroy(struct wl_listener *listener, void *data) {
|
||||||
struct sway_xwayland_view *xwayland_view =
|
struct sway_xwayland_view *xwayland_view =
|
||||||
wl_container_of(listener, xwayland_view, destroy);
|
wl_container_of(listener, xwayland_view, destroy);
|
||||||
struct sway_view *view = &xwayland_view->view;
|
|
||||||
struct wlr_xwayland_surface *xsurface = view->wlr_xwayland_surface;
|
|
||||||
if (xsurface->mapped) {
|
|
||||||
handle_unmap(&xwayland_view->unmap, xsurface);
|
|
||||||
}
|
|
||||||
view_destroy(&xwayland_view->view);
|
view_destroy(&xwayland_view->view);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user