From 72a7c96f98445673c317d6b96be1b9370626df74 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Thu, 21 May 2026 22:40:31 +0800 Subject: [PATCH] opt: dont send suspend state to client because some app like gnome not ready for this --- src/animation/client.h | 1 - src/animation/tag.h | 2 -- src/client/client.h | 9 --------- 3 files changed, 12 deletions(-) diff --git a/src/animation/client.h b/src/animation/client.h index c89f0cec..57a72744 100644 --- a/src/animation/client.h +++ b/src/animation/client.h @@ -1044,7 +1044,6 @@ void client_animation_next_tick(Client *c) { if (c->animation.tagouting) { c->animation.tagouting = false; wlr_scene_node_set_enabled(&c->scene->node, false); - client_set_suspended(c, true); c->animation.tagouted = true; c->animation.current = c->geom; } diff --git a/src/animation/tag.h b/src/animation/tag.h index 1a973784..df1fb8f6 100644 --- a/src/animation/tag.h +++ b/src/animation/tag.h @@ -46,7 +46,6 @@ void set_arrange_visible(Monitor *m, Client *c, bool want_animation) { wlr_scene_node_set_enabled(&c->scene->node, true); wlr_scene_node_set_enabled(&c->scene_surface->node, true); } - client_set_suspended(c, false); if (!c->animation.tag_from_rule && want_animation && m->pertag->prevtag != 0 && m->pertag->curtag != 0 && @@ -112,6 +111,5 @@ void set_arrange_hidden(Monitor *m, Client *c, bool want_animation) { set_tagout_animation(m, c); } else { wlr_scene_node_set_enabled(&c->scene->node, false); - client_set_suspended(c, true); } } diff --git a/src/client/client.h b/src/client/client.h index 27e8ef33..8e291e9e 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -380,15 +380,6 @@ static inline void client_set_tiled(Client *c, uint32_t edges) { } } -static inline void client_set_suspended(Client *c, int32_t suspended) { -#ifdef XWAYLAND - if (client_is_x11(c)) - return; -#endif - - wlr_xdg_toplevel_set_suspended(c->surface.xdg->toplevel, suspended); -} - static inline int32_t client_should_ignore_focus(Client *c) { #ifdef XWAYLAND