From 099c80e7d6b27ad122d15e96a02816039157d3f7 Mon Sep 17 00:00:00 2001 From: Vincent Vanlaer Date: Wed, 7 Feb 2018 18:36:08 +0100 Subject: [PATCH] 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. --- rootston/xdg_shell_v6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }