aboutsummaryrefslogtreecommitdiff
path: root/rootston/cursor.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-11-11 15:39:15 +0100
committeremersion <contact@emersion.fr>2017-11-11 15:39:15 +0100
commiteb89f1dcd2dd820bc86ae0350774aff4d81408e8 (patch)
tree7ff7ee99b3818cd029cfa57218167e7461afa11b /rootston/cursor.c
parent698a172701e15283652d813c8f47122be3164dd5 (diff)
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
Diffstat (limited to 'rootston/cursor.c')
-rw-r--r--rootston/cursor.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rootston/cursor.c b/rootston/cursor.c
index cbd03af1..81841b6c 100644
--- a/rootston/cursor.c
+++ b/rootston/cursor.c
@@ -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;