From c88960751d7e422ad7eca1672c00ee09515e5095 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= Date: Sun, 10 Dec 2023 23:42:35 -0600 Subject: [PATCH] check if a client is unmanaged checking the o-r flag it may change at any moment and I don't really want to add a listener for it --- client.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client.h b/client.h index 71c7d76..68e7534 100644 --- a/client.h +++ b/client.h @@ -270,7 +270,8 @@ static inline int client_is_unmanaged(Client *c) { #ifdef XWAYLAND - return c->type == X11Unmanaged; + if (client_is_x11(c)) + return c->surface.xwayland->override_redirect; #endif return 0; }