mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-19 06:59:48 -05:00
rootston: use box for views position
This commit is contained in:
parent
d703ae45dd
commit
0f3a061f60
10 changed files with 89 additions and 90 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue