]> git.mdlowis.com Git - proto/labwc.git/commitdiff
xwayland.c: Do not raise window if deactivating
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Sat, 12 Mar 2022 10:49:05 +0000 (11:49 +0100)
committerJohan Malm <jgm323@gmail.com>
Mon, 21 Mar 2022 17:15:09 +0000 (17:15 +0000)
Fixes #270

src/xwayland.c

index 7d625497370e9c7cd23f66a4c1ece39faa01ce83..a3da7b903112314da7b44d15648e9b38c293fa6a 100644 (file)
@@ -368,7 +368,9 @@ set_activated(struct view *view, bool activated)
        }
 
        wlr_xwayland_surface_activate(surface, activated);
-       wlr_xwayland_surface_restack(surface, NULL, XCB_STACK_MODE_ABOVE);
+       if (activated) {
+               wlr_xwayland_surface_restack(surface, NULL, XCB_STACK_MODE_ABOVE);
+       }
 }
 
 static void