aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/xwayland.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-10-08 23:50:43 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-10-08 23:50:43 +1000
commitd21d2c8665f8fdaad719bb81cc636052f7c1d1a1 (patch)
treeb8c7f95946f67238fe3f8cc892e77e76be124f5b /sway/desktop/xwayland.c
parentLook for any ancestor when checking for fullscreen exit (diff)
downloadsway-d21d2c8665f8fdaad719bb81cc636052f7c1d1a1.tar.gz
sway-d21d2c8665f8fdaad719bb81cc636052f7c1d1a1.tar.zst
sway-d21d2c8665f8fdaad719bb81cc636052f7c1d1a1.zip
Remove duplicate code
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r--sway/desktop/xwayland.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index 2bdb7dc0..ebf2131e 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -407,17 +407,6 @@ static void handle_map(struct wl_listener *listener, void *data) {
407 // Put it back into the tree 407 // Put it back into the tree
408 view_map(view, xsurface->surface); 408 view_map(view, xsurface->surface);
409 409
410 if (config->popup_during_fullscreen == POPUP_LEAVE &&
411 view->container->workspace &&
412 view->container->workspace->fullscreen &&
413 view->container->workspace->fullscreen->view &&
414 xsurface->parent) {
415 struct sway_container *fs = view->container->workspace->fullscreen;
416 if (is_transient_for(view, fs->view)) {
417 container_set_fullscreen(fs, false);
418 }
419 }
420
421 if (xsurface->fullscreen) { 410 if (xsurface->fullscreen) {
422 container_set_fullscreen(view->container, true); 411 container_set_fullscreen(view->container, true);
423 arrange_workspace(view->container->workspace); 412 arrange_workspace(view->container->workspace);