opt: dont suspend when disable node

This commit is contained in:
DreamMaoMao 2026-04-28 00:20:06 +08:00
parent b9c6a2c196
commit 8cd8025d3e
3 changed files with 0 additions and 12 deletions

View file

@ -738,7 +738,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;
}

View file

@ -36,7 +36,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 &&
@ -90,6 +89,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);
}
}

View file

@ -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