mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-13 13:29:44 -05:00
Completely fix resize offset
This commit is contained in:
parent
77d28183b5
commit
74f2d0cd63
4 changed files with 19 additions and 5 deletions
|
|
@ -37,8 +37,10 @@ void view_begin_resize(struct roots_input *input, struct wlr_cursor *cursor,
|
|||
input->offs_y = cursor->y;
|
||||
input->view_x = view->x;
|
||||
input->view_y = view->y;
|
||||
input->view_width = view->wlr_surface->current.width;
|
||||
input->view_height = view->wlr_surface->current.height;
|
||||
struct wlr_box size;
|
||||
view_get_size(view, &size);
|
||||
input->view_width = size.width;
|
||||
input->view_height = size.height;
|
||||
input->resize_edges = edges;
|
||||
wlr_seat_pointer_clear_focus(input->wl_seat);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue