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: 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(-) (limited to 'client.h') 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; } -- cgit v1.2.3 From 49bfe927030b4747deded43656b4fe417c157123 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= Date: Sun, 10 Dec 2023 23:44:33 -0600 Subject: merge X11Managed and X11Unmanaged into X11 now that client_is_unmanaged() checks the wlr struct we don't need to keep track of it ourselves --- client.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client.h') diff --git a/client.h b/client.h index 68e7534..dded687 100644 --- a/client.h +++ b/client.h @@ -10,7 +10,7 @@ static inline int client_is_x11(Client *c) { #ifdef XWAYLAND - return c->type == X11Managed || c->type == X11Unmanaged; + return c->type == X11; #endif return 0; } -- cgit v1.2.3