xwayland.c: Do not raise window if deactivating

Fixes #270
This commit is contained in:
Consolatis 2022-03-12 11:49:05 +01:00
parent a52feadaa7
commit c5876a3dde

View file

@ -335,7 +335,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