aboutsummaryrefslogtreecommitdiff
path: root/rootston/cursor.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-11-11 09:46:11 -0500
committerGitHub <noreply@github.com>2017-11-11 09:46:11 -0500
commit78ed7f3c8983191b0b6399d4c66f5524a23f216a (patch)
tree7ff7ee99b3818cd029cfa57218167e7461afa11b /rootston/cursor.c
parent698a172701e15283652d813c8f47122be3164dd5 (diff)
parenteb89f1dcd2dd820bc86ae0350774aff4d81408e8 (diff)
Merge pull request #408 from emersion/fix-xdg-no-geometry
Fix resize issues with some xdg-shell apps.
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;