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
This commit is contained in:
Leonardo Hernández Hernández 2023-12-10 23:42:35 -06:00
parent 9c5bdcfbe8
commit c88960751d
No known key found for this signature in database
GPG Key ID: E538897EE11B9624
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}