From 8693bbd6b11b2519747fe3efcd6376a9736aef6f Mon Sep 17 00:00:00 2001 From: emersion Date: Sat, 18 Nov 2017 09:13:31 +0100 Subject: Update view coords when no configure is required --- rootston/xdg_shell_v6.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/rootston/xdg_shell_v6.c b/rootston/xdg_shell_v6.c index 5a55b8c4..8819ebdd 100644 --- a/rootston/xdg_shell_v6.c +++ b/rootston/xdg_shell_v6.c @@ -97,8 +97,14 @@ static void move_resize(struct roots_view *view, double x, double y, roots_surface->move_resize.width = constrained_width; roots_surface->move_resize.height = constrained_height; - roots_surface->move_resize.configure_serial = wlr_xdg_toplevel_v6_set_size( - surface, constrained_width, constrained_height); + uint32_t serial = wlr_xdg_toplevel_v6_set_size(surface, constrained_width, + constrained_height); + if (serial > 0) { + roots_surface->move_resize.configure_serial = serial; + } else { + view->x = x; + view->y = y; + } } static void maximize(struct roots_view *view, bool maximized) { -- cgit v1.2.3