mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-06 07:15:53 -04:00
剪切所有划出客户端的动画
This commit is contained in:
parent
ae48bd62a7
commit
8efbac109b
1 changed files with 2 additions and 4 deletions
6
maomao.c
6
maomao.c
|
|
@ -878,8 +878,7 @@ void apply_border(Client *c, struct wlr_box clip_box, int offset) {
|
||||||
wlr_scene_rect_set_size(c->border[0], clip_box.width, c->bw);
|
wlr_scene_rect_set_size(c->border[0], clip_box.width, c->bw);
|
||||||
wlr_scene_rect_set_size(c->border[1], clip_box.width, c->bw);
|
wlr_scene_rect_set_size(c->border[1], clip_box.width, c->bw);
|
||||||
|
|
||||||
if (c->animation.tagining || c->animation.tagouted ||
|
if (c->animation.running) {
|
||||||
c->animation.tagouting) {
|
|
||||||
if (c->animation.current.x < c->mon->m.x) {
|
if (c->animation.current.x < c->mon->m.x) {
|
||||||
wlr_scene_rect_set_size(c->border[2], 0, 0);
|
wlr_scene_rect_set_size(c->border[2], 0, 0);
|
||||||
wlr_scene_rect_set_size(c->border[3], c->bw, clip_box.height - 2 * c->bw);
|
wlr_scene_rect_set_size(c->border[3], c->bw, clip_box.height - 2 * c->bw);
|
||||||
|
|
@ -945,8 +944,7 @@ void client_apply_clip(Client *c) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// make tagout tagin animations not visible in other monitors
|
// make tagout tagin animations not visible in other monitors
|
||||||
if (c->animation.tagouting || c->animation.tagining ||
|
if (c->animation.running) {
|
||||||
c->animation.tagouted) {
|
|
||||||
if (c->animation.current.x <= c->mon->m.x) {
|
if (c->animation.current.x <= c->mon->m.x) {
|
||||||
offset = c->mon->m.x - c->animation.current.x;
|
offset = c->mon->m.x - c->animation.current.x;
|
||||||
clip_box.x = clip_box.x + offset;
|
clip_box.x = clip_box.x + offset;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue