mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-23 05:15:58 +01:00
Fix jitter when quickly resizing windows
Surfaces and views get resized only on commit, therefore we may only change the position of a window if there are no pending commits.
This commit is contained in:
parent
b10269e513
commit
099c80e7d6
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ static void move_resize(struct roots_view *view, double x, double y,
|
||||||
constrained_height);
|
constrained_height);
|
||||||
if (serial > 0) {
|
if (serial > 0) {
|
||||||
roots_surface->pending_move_resize_configure_serial = serial;
|
roots_surface->pending_move_resize_configure_serial = serial;
|
||||||
} else {
|
} else if(roots_surface->pending_move_resize_configure_serial == 0) {
|
||||||
view->x = x;
|
view->x = x;
|
||||||
view->y = y;
|
view->y = y;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue