aboutsummaryrefslogtreecommitdiff
path: root/rootston/xdg_shell_v6.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-11-19 22:55:44 +0100
committeremersion <contact@emersion.fr>2017-11-19 22:55:44 +0100
commitc0e2dc6f7875a3dc5ad7ca49444e068f15c001ed (patch)
tree82957244db0e6ab7cbcc6e10d4af08ec8f79e0f5 /rootston/xdg_shell_v6.c
parent7904b625f0c6a8cef684d60ba136de1ba48e848e (diff)
Update view position for previous configure_ack too
Diffstat (limited to 'rootston/xdg_shell_v6.c')
-rw-r--r--rootston/xdg_shell_v6.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/rootston/xdg_shell_v6.c b/rootston/xdg_shell_v6.c
index 8819ebdd..ca011d49 100644
--- a/rootston/xdg_shell_v6.c
+++ b/rootston/xdg_shell_v6.c
@@ -174,7 +174,7 @@ static void handle_commit(struct wl_listener *listener, void *data) {
struct wlr_xdg_surface_v6 *surface = view->xdg_surface_v6;
if (roots_surface->move_resize.configure_serial > 0 &&
- roots_surface->move_resize.configure_serial ==
+ roots_surface->move_resize.configure_serial >=
surface->configure_serial) {
struct wlr_box size;
get_size(view, &size);
@@ -187,7 +187,11 @@ static void handle_commit(struct wl_listener *listener, void *data) {
view->y = roots_surface->move_resize.y +
roots_surface->move_resize.height - size.height;
}
- roots_surface->move_resize.configure_serial = 0;
+
+ if (roots_surface->move_resize.configure_serial ==
+ surface->configure_serial) {
+ roots_surface->move_resize.configure_serial = 0;
+ }
}
}