From a4fa9546166c9af277616dd6dcd80e61ee024eb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= Date: Sat, 3 Aug 2024 12:09:18 -0600 Subject: [PATCH] do not restack xwayland surfaces (wlroots!4756) References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4756 --- client.h | 11 ----------- dwl.c | 1 - 2 files changed, 12 deletions(-) diff --git a/client.h b/client.h index c43dbfd..3dc1050 100644 --- a/client.h +++ b/client.h @@ -301,17 +301,6 @@ client_notify_enter(struct wlr_surface *s, struct wlr_keyboard *kb) wlr_seat_keyboard_notify_enter(seat, s, NULL, 0, NULL); } -static inline void -client_restack_surface(Client *c) -{ -#ifdef XWAYLAND - if (client_is_x11(c)) - wlr_xwayland_surface_restack(c->surface.xwayland, NULL, - XCB_STACK_MODE_ABOVE); -#endif - return; -} - static inline void client_send_close(Client *c) { diff --git a/dwl.c b/dwl.c index 72892d9..7e2d510 100644 --- a/dwl.c +++ b/dwl.c @@ -1368,7 +1368,6 @@ focusclient(Client *c, int lift) wl_list_insert(&fstack, &c->flink); selmon = c->mon; c->isurgent = 0; - client_restack_surface(c); /* Don't change border color if there is an exclusive focus or we are * handling a drag operation */