set withdrawn state for xwayland invisible clients

This commit is contained in:
Leonardo Hernández Hernández 2023-07-25 19:45:18 -06:00 committed by Leonardo Hernández
parent 78cf88670f
commit 25db045392

View file

@ -350,8 +350,10 @@ static inline void
client_set_suspended(Client *c, int suspended) client_set_suspended(Client *c, int suspended)
{ {
#ifdef XWAYLAND #ifdef XWAYLAND
if (client_is_x11(c)) if (client_is_x11(c)) {
wlr_xwayland_surface_set_withdrawn(c->surface.xwayland, suspended);
return; return;
}
#endif #endif
wlr_xdg_toplevel_set_suspended(c->surface.xdg->toplevel, suspended); wlr_xdg_toplevel_set_suspended(c->surface.xdg->toplevel, suspended);