mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-03 06:46:38 -04:00
opt: dont suspend when disable node
This commit is contained in:
parent
b9c6a2c196
commit
8cd8025d3e
3 changed files with 0 additions and 12 deletions
|
|
@ -738,7 +738,6 @@ void client_animation_next_tick(Client *c) {
|
||||||
if (c->animation.tagouting) {
|
if (c->animation.tagouting) {
|
||||||
c->animation.tagouting = false;
|
c->animation.tagouting = false;
|
||||||
wlr_scene_node_set_enabled(&c->scene->node, false);
|
wlr_scene_node_set_enabled(&c->scene->node, false);
|
||||||
client_set_suspended(c, true);
|
|
||||||
c->animation.tagouted = true;
|
c->animation.tagouted = true;
|
||||||
c->animation.current = c->geom;
|
c->animation.current = c->geom;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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->node, true);
|
||||||
wlr_scene_node_set_enabled(&c->scene_surface->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 &&
|
if (!c->animation.tag_from_rule && want_animation &&
|
||||||
m->pertag->prevtag != 0 && m->pertag->curtag != 0 &&
|
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);
|
set_tagout_animation(m, c);
|
||||||
} else {
|
} else {
|
||||||
wlr_scene_node_set_enabled(&c->scene->node, false);
|
wlr_scene_node_set_enabled(&c->scene->node, false);
|
||||||
client_set_suspended(c, true);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
static inline int32_t client_should_ignore_focus(Client *c) {
|
||||||
|
|
||||||
#ifdef XWAYLAND
|
#ifdef XWAYLAND
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue