mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
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:
parent
698a172701
commit
eb89f1dcd2
4 changed files with 22 additions and 16 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue