From dd00d994ce4c53829d0b871622dc05e90a6f58c3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?=
 <leohdz172@proton.me>
Date: Sun, 31 Mar 2024 21:41:12 -0600
Subject: do not set withdrawn state for xwayland clients

Closes: https://codeberg.org/dwl/dwl/issues/573
---
 client.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/client.h b/client.h
index fe9dffc..800b867 100644
--- a/client.h
+++ b/client.h
@@ -379,10 +379,8 @@ static inline void
 client_set_suspended(Client *c, int suspended)
 {
 #ifdef XWAYLAND
-	if (client_is_x11(c)) {
-		wlr_xwayland_surface_set_withdrawn(c->surface.xwayland, suspended);
+	if (client_is_x11(c))
 		return;
-	}
 #endif
 
 	wlr_xdg_toplevel_set_suspended(c->surface.xdg->toplevel, suspended);
-- 
cgit v1.2.3