From bc9c7a7555e0ece9335425c135ea218fae98b7ff Mon Sep 17 00:00:00 2001 From: project-repo Date: Wed, 21 Sep 2022 19:17:17 +0200 Subject: [PATCH] Add restack to xwayland view activation --- xwayland.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xwayland.c b/xwayland.c index c3c3a57..5d609ae 100644 --- a/xwayland.c +++ b/xwayland.c @@ -63,6 +63,9 @@ static void activate(struct cg_view *view, bool activate) { struct cg_xwayland_view *xwayland_view = xwayland_view_from_view(view); wlr_xwayland_surface_activate(xwayland_view->xwayland_surface, activate); + if(activate) { + wlr_xwayland_surface_restack(xwayland_view->xwayland_surface, NULL, XCB_STACK_MODE_ABOVE); + } } static void