mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-05 04:06:28 -05:00
Merge pull request #510 from andycandy-dev/fix-scroller-overlap
fix: scroller layout window overlap caused by uint
This commit is contained in:
commit
3e9f437e85
1 changed files with 4 additions and 4 deletions
|
|
@ -708,10 +708,10 @@ void client_animation_next_tick(Client *c) {
|
|||
c->animation.initial.height +
|
||||
(c->current.height - c->animation.initial.height) * factor;
|
||||
|
||||
uint32_t x = c->animation.initial.x +
|
||||
(c->current.x - c->animation.initial.x) * factor;
|
||||
uint32_t y = c->animation.initial.y +
|
||||
(c->current.y - c->animation.initial.y) * factor;
|
||||
int32_t x = c->animation.initial.x +
|
||||
(c->current.x - c->animation.initial.x) * factor;
|
||||
int32_t y = c->animation.initial.y +
|
||||
(c->current.y - c->animation.initial.y) * factor;
|
||||
|
||||
wlr_scene_node_set_position(&c->scene->node, x, y);
|
||||
c->animation.current = (struct wlr_box){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue