diff options
author | Vincent Vanlaer <vincent.vanlaer@skynet.be> | 2018-02-07 18:36:08 +0100 |
---|---|---|
committer | Vincent Vanlaer <vincent.vanlaer@skynet.be> | 2018-02-07 18:36:08 +0100 |
commit | 099c80e7d6b27ad122d15e96a02816039157d3f7 (patch) | |
tree | 0ff96e15eaac1984a85954a30c0a8d641110ff88 /rootston | |
parent | b10269e513a0bf29059a7203aa8e3ccac10f0af4 (diff) |
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.
Diffstat (limited to 'rootston')
-rw-r--r-- | rootston/xdg_shell_v6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rootston/xdg_shell_v6.c b/rootston/xdg_shell_v6.c index 0515263b..41353199 100644 --- a/rootston/xdg_shell_v6.c +++ b/rootston/xdg_shell_v6.c @@ -101,7 +101,7 @@ static void move_resize(struct roots_view *view, double x, double y, constrained_height); if (serial > 0) { roots_surface->pending_move_resize_configure_serial = serial; - } else { + } else if(roots_surface->pending_move_resize_configure_serial == 0) { view->x = x; view->y = y; } |