mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-22 06:59:52 -05:00
fix: tag animaition for float window miss clip
This commit is contained in:
parent
a43550345e
commit
5db7c42bac
1 changed files with 3 additions and 3 deletions
6
maomao.c
6
maomao.c
|
|
@ -1008,7 +1008,7 @@ void apply_border(Client *c, struct wlr_box clip_box, int offsetx,
|
|||
wlr_scene_node_set_position(&c->border[3]->node, clip_box.width - c->bw,
|
||||
c->bw);
|
||||
|
||||
if (ISTILED(c)) {
|
||||
if (ISTILED(c) || c->animation.tagining || c->animation.tagouted || c->animation.tagouting) {
|
||||
if (c->animation.current.x < c->mon->m.x) {
|
||||
set_rect_size(c->border[2], 0, 0);
|
||||
} else if (c->animation.current.x + c->animation.current.width >
|
||||
|
|
@ -1037,10 +1037,10 @@ struct uvec2 clip_to_hide(Client *c, struct wlr_box *clip_box) {
|
|||
offset.x = 0;
|
||||
offset.y =0;
|
||||
|
||||
if(!ISTILED(c)) return offset;
|
||||
if(!ISTILED(c) && !c->animation.tagining && !c->animation.tagouted && !c->animation.tagouting) return offset;
|
||||
|
||||
// // make tagout tagin animations not visible in other monitors
|
||||
if (ISTILED(c)) {
|
||||
if (ISTILED(c) || c->animation.tagining || c->animation.tagouted || c->animation.tagouting) {
|
||||
if (c->animation.current.x <= c->mon->m.x) {
|
||||
offsetx = c->mon->m.x - c->animation.current.x - c->bw;
|
||||
clip_box->x = clip_box->x + offsetx;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue