From 099c80e7d6b27ad122d15e96a02816039157d3f7 Mon Sep 17 00:00:00 2001 From: Vincent Vanlaer Date: Wed, 7 Feb 2018 18:36:08 +0100 Subject: 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(-) (limited to 'rootston') 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; } -- cgit v1.2.3 From 712665b83b83871c52144ea36fe9469ad06b5107 Mon Sep 17 00:00:00 2001 From: Vincent Vanlaer Date: Wed, 7 Feb 2018 20:26:30 +0100 Subject: Fix style error --- rootston/xdg_shell_v6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rootston') diff --git a/rootston/xdg_shell_v6.c b/rootston/xdg_shell_v6.c index 41353199..884d0d05 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 if(roots_surface->pending_move_resize_configure_serial == 0) { + } else if (roots_surface->pending_move_resize_configure_serial == 0) { view->x = x; view->y = y; } -- cgit v1.2.3