aboutsummaryrefslogtreecommitdiff
path: root/rootston/seat.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-12-06 07:30:19 -0500
committerGitHub <noreply@github.com>2018-12-06 07:30:19 -0500
commit8cb4df2a30e26c7d173d740eba36a3cd78a578b1 (patch)
tree27d6b9876735658d3d20e2899e050e2b9f21cb07 /rootston/seat.c
parente539a8b2081f458ea2d272654b3074390920510e (diff)
parent0f3a061f602a1384d7e0778ecd090519e0cb2b30 (diff)
Merge pull request #1416 from kragniz/rootston-use-box
rootston: use box for views position
Diffstat (limited to 'rootston/seat.c')
-rw-r--r--rootston/seat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rootston/seat.c b/rootston/seat.c
index 95e7d6c9..e91278c5 100644
--- a/rootston/seat.c
+++ b/rootston/seat.c
@@ -1341,8 +1341,8 @@ void roots_seat_begin_move(struct roots_seat *seat, struct roots_view *view) {
cursor->view_x = view->saved.x;
cursor->view_y = view->saved.y;
} else {
- cursor->view_x = view->x;
- cursor->view_y = view->y;
+ cursor->view_x = view->box.x;
+ cursor->view_y = view->box.y;
}
view_maximize(view, false);
wlr_seat_pointer_clear_focus(seat->seat);
@@ -1363,8 +1363,8 @@ void roots_seat_begin_resize(struct roots_seat *seat, struct roots_view *view,
cursor->view_width = view->saved.width;
cursor->view_height = view->saved.height;
} else {
- cursor->view_x = view->x;
- cursor->view_y = view->y;
+ cursor->view_x = view->box.x;
+ cursor->view_y = view->box.y;
struct wlr_box box;
view_get_box(view, &box);
cursor->view_width = box.width;