opt: border disappear too fast when in tagout animation

This commit is contained in:
DreamMaoMao 2025-07-09 14:59:14 +08:00
parent e374e9c530
commit b003361240

View file

@ -489,7 +489,7 @@ struct ivec2 clip_to_hide(Client *c, struct wlr_box *clip_box) {
offset.width = offsetw;
offset.height = offseth;
if ((clip_box->width <= 0 || clip_box->height <= 0) &&
if ((clip_box->width + bw <= 0 || clip_box->height + bw <= 0) &&
(ISTILED(c) || c->animation.tagouting || c->animation.tagining)) {
c->is_clip_to_hide = true;
wlr_scene_node_set_enabled(&c->scene->node, false);