Merge pull request #510 from andycandy-dev/fix-scroller-overlap
fix: scroller layout window overlap caused by uint
This commit is contained in:
@@ -708,9 +708,9 @@ void client_animation_next_tick(Client *c) {
|
|||||||
c->animation.initial.height +
|
c->animation.initial.height +
|
||||||
(c->current.height - c->animation.initial.height) * factor;
|
(c->current.height - c->animation.initial.height) * factor;
|
||||||
|
|
||||||
uint32_t x = c->animation.initial.x +
|
int32_t x = c->animation.initial.x +
|
||||||
(c->current.x - c->animation.initial.x) * factor;
|
(c->current.x - c->animation.initial.x) * factor;
|
||||||
uint32_t y = c->animation.initial.y +
|
int32_t y = c->animation.initial.y +
|
||||||
(c->current.y - c->animation.initial.y) * factor;
|
(c->current.y - c->animation.initial.y) * factor;
|
||||||
|
|
||||||
wlr_scene_node_set_position(&c->scene->node, x, y);
|
wlr_scene_node_set_position(&c->scene->node, x, y);
|
||||||
|
|||||||
Reference in New Issue
Block a user