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

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