diff options
author | Louis Taylor <louis@kragniz.eu> | 2018-12-05 09:01:25 +0000 |
---|---|---|
committer | Louis Taylor <louis@kragniz.eu> | 2018-12-05 19:20:50 +0000 |
commit | 0f3a061f602a1384d7e0778ecd090519e0cb2b30 (patch) | |
tree | b57221029cc9472d2204d208cc2c067538f69a2e /rootston/seat.c | |
parent | d703ae45dde73053767ccbb3c0c3d66f2b98fd11 (diff) |
rootston: use box for views position
Diffstat (limited to 'rootston/seat.c')
-rw-r--r-- | rootston/seat.c | 8 |
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; |