Fix resize issues with some xdg-shell apps.

Also renames view_get_size to view_get_box to be more consistent with wlroots API and make it more obvious that x,y are set (while in roots_view.get_size this isn't the case).
Fixes #407
This commit is contained in:
emersion 2017-11-11 15:39:15 +01:00
parent 698a172701
commit eb89f1dcd2
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
4 changed files with 22 additions and 16 deletions

View file

@ -72,10 +72,10 @@ void view_begin_resize(struct roots_input *input, struct wlr_cursor *cursor,
} else {
input->view_x = view->x;
input->view_y = view->y;
struct wlr_box size;
view_get_size(view, &size);
input->view_width = size.width;
input->view_height = size.height;
struct wlr_box box;
view_get_box(view, &box);
input->view_width = box.width;
input->view_height = box.height;
}
input->resize_edges = edges;