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
Failed to generate hash of commit

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