mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-23 06:59:51 -05:00
fix: error clip offset for clip_to_hide
This commit is contained in:
parent
437141ff73
commit
dfaab261c1
1 changed files with 2 additions and 2 deletions
4
maomao.c
4
maomao.c
|
|
@ -1049,7 +1049,7 @@ struct uvec2 clip_to_hide(Client *c, struct wlr_box *clip_box) {
|
||||||
c->mon->m.x + c->mon->m.width) {
|
c->mon->m.x + c->mon->m.width) {
|
||||||
clip_box->width = clip_box->width -
|
clip_box->width = clip_box->width -
|
||||||
(c->animation.current.x + c->animation.current.width -
|
(c->animation.current.x + c->animation.current.width -
|
||||||
c->mon->m.x - c->mon->m.width);
|
c->mon->m.x - c->mon->m.width) + c->bw;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c->animation.current.y <= c->mon->m.y) {
|
if (c->animation.current.y <= c->mon->m.y) {
|
||||||
|
|
@ -1060,7 +1060,7 @@ struct uvec2 clip_to_hide(Client *c, struct wlr_box *clip_box) {
|
||||||
c->mon->m.y + c->mon->m.height) {
|
c->mon->m.y + c->mon->m.height) {
|
||||||
clip_box->height = clip_box->height -
|
clip_box->height = clip_box->height -
|
||||||
(c->animation.current.y + c->animation.current.height -
|
(c->animation.current.y + c->animation.current.height -
|
||||||
c->mon->m.y - c->mon->m.height);
|
c->mon->m.y - c->mon->m.height) + c->bw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue