xwayland.c: Do not raise window if deactivating

Fixes #270
This commit is contained in:
Consolatis 2022-03-12 11:49:05 +01:00 committed by Johan Malm
parent a52feadaa7
commit 03826a1348

View file

@ -335,7 +335,9 @@ set_activated(struct view *view, bool activated)
} }
wlr_xwayland_surface_activate(surface, 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 static void