diff options
author | emersion <contact@emersion.fr> | 2018-04-20 16:24:34 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-04-20 16:24:34 +0100 |
commit | 17bee33fc9497448f7d3f4121ecf9821bf7b5956 (patch) | |
tree | 62216d8e5fdc9f2258c1718d431a5b1ed963c07b | |
parent | Merge pull request #1830 from bpinto/swaylock/install-pam-module (diff) | |
download | sway-17bee33fc9497448f7d3f4121ecf9821bf7b5956.tar.gz sway-17bee33fc9497448f7d3f4121ecf9821bf7b5956.tar.zst sway-17bee33fc9497448f7d3f4121ecf9821bf7b5956.zip |
Don't unmap on destroy, this is already guaranteed by wlroots
-rw-r--r-- | sway/desktop/xwayland.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c index 46eaa84c..cad9156d 100644 --- a/sway/desktop/xwayland.c +++ b/sway/desktop/xwayland.c | |||
@@ -257,11 +257,6 @@ static void handle_map(struct wl_listener *listener, void *data) { | |||
257 | static void handle_destroy(struct wl_listener *listener, void *data) { | 257 | static void handle_destroy(struct wl_listener *listener, void *data) { |
258 | struct sway_xwayland_view *xwayland_view = | 258 | struct sway_xwayland_view *xwayland_view = |
259 | wl_container_of(listener, xwayland_view, destroy); | 259 | wl_container_of(listener, xwayland_view, destroy); |
260 | struct sway_view *view = &xwayland_view->view; | ||
261 | struct wlr_xwayland_surface *xsurface = view->wlr_xwayland_surface; | ||
262 | if (xsurface->mapped) { | ||
263 | handle_unmap(&xwayland_view->unmap, xsurface); | ||
264 | } | ||
265 | view_destroy(&xwayland_view->view); | 260 | view_destroy(&xwayland_view->view); |
266 | } | 261 | } |
267 | 262 | ||