diff options
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r-- | sway/desktop/xwayland.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c index 80489f93..2bdb7dc0 100644 --- a/sway/desktop/xwayland.c +++ b/sway/desktop/xwayland.c | |||
@@ -410,12 +410,11 @@ static void handle_map(struct wl_listener *listener, void *data) { | |||
410 | if (config->popup_during_fullscreen == POPUP_LEAVE && | 410 | if (config->popup_during_fullscreen == POPUP_LEAVE && |
411 | view->container->workspace && | 411 | view->container->workspace && |
412 | view->container->workspace->fullscreen && | 412 | view->container->workspace->fullscreen && |
413 | view->container->workspace->fullscreen->view && | ||
413 | xsurface->parent) { | 414 | xsurface->parent) { |
414 | struct wlr_xwayland_surface *psurface = xsurface->parent; | 415 | struct sway_container *fs = view->container->workspace->fullscreen; |
415 | struct sway_xwayland_view *parent = psurface->data; | 416 | if (is_transient_for(view, fs->view)) { |
416 | struct sway_view *sway_view = &parent->view; | 417 | container_set_fullscreen(fs, false); |
417 | if (sway_view->container && sway_view->container->is_fullscreen) { | ||
418 | container_set_fullscreen(sway_view->container, false); | ||
419 | } | 418 | } |
420 | } | 419 | } |
421 | 420 | ||