mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
Refactor seat.c, keyboard.c, cursor.c
Use wlr_keyboard_group
This commit is contained in:
parent
a4c22f7c4d
commit
25829d122c
9 changed files with 288 additions and 267 deletions
|
|
@ -8,13 +8,14 @@ interactive_begin(struct view *view, enum cursor_mode mode, uint32_t edges)
|
|||
* the compositor stops propegating pointer events to clients and
|
||||
* instead consumes them itself, to move or resize windows.
|
||||
*/
|
||||
struct seat *seat = &view->server->seat;
|
||||
struct server *server = view->server;
|
||||
server->grabbed_view = view;
|
||||
server->cursor_mode = mode;
|
||||
|
||||
/* Remember view and cursor positions at start of move/resize */
|
||||
server->grab_x = server->cursor->x;
|
||||
server->grab_y = server->cursor->y;
|
||||
server->grab_x = seat->cursor->x;
|
||||
server->grab_y = seat->cursor->y;
|
||||
struct wlr_box box = {
|
||||
.x = view->x, .y = view->y, .width = view->w, .height = view->h
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue