Update view coords when no configure is required

This commit is contained in:
emersion 2017-11-18 09:13:31 +01:00
parent a3a8b7bfd8
commit 8693bbd6b1
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
1 changed files with 8 additions and 2 deletions

View File

@ -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.width = constrained_width;
roots_surface->move_resize.height = constrained_height; roots_surface->move_resize.height = constrained_height;
roots_surface->move_resize.configure_serial = wlr_xdg_toplevel_v6_set_size( uint32_t serial = wlr_xdg_toplevel_v6_set_size(surface, constrained_width,
surface, constrained_width, constrained_height); 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) { static void maximize(struct roots_view *view, bool maximized) {