diff options
author | emersion <[email protected]> | 2018-04-28 20:44:42 +0100 |
---|---|---|
committer | emersion <[email protected]> | 2018-04-28 20:44:42 +0100 |
commit | 3fd8897abe94c34b6457da3209f978b55719a7e2 (patch) | |
tree | d50dc742d8b8bcc2da07c3a784aaa0064a473646 /sway/desktop/xwayland.c | |
parent | 85ec7002068277fe82dcc139ebb401b515ca5d80 (diff) |
Don't call view_set_fullscreen on unmapped xwayland views
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r-- | sway/desktop/xwayland.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c index 63d9c66e..aa9e1797 100644 --- a/sway/desktop/xwayland.c +++ b/sway/desktop/xwayland.c @@ -280,6 +280,9 @@ static void handle_request_fullscreen(struct wl_listener *listener, void *data) wl_container_of(listener, xwayland_view, request_fullscreen); struct sway_view *view = &xwayland_view->view; struct wlr_xwayland_surface *xsurface = view->wlr_xwayland_surface; + if (!xsurface->mapped) { + return; + } view_set_fullscreen(view, xsurface->fullscreen); } @@ -309,7 +312,6 @@ void handle_xwayland_surface(struct wl_listener *listener, void *data) { // TODO: // - Look up pid and open on appropriate workspace - // - Criteria wl_signal_add(&xsurface->events.destroy, &xwayland_view->destroy); xwayland_view->destroy.notify = handle_destroy; |