mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
Make the close command use roots_seat_get_focus, rename a few symbols
This commit is contained in:
parent
a8b31da52c
commit
bf41e7a794
5 changed files with 17 additions and 18 deletions
|
|
@ -58,7 +58,7 @@ static void roots_cursor_update_position(struct roots_cursor *cursor,
|
|||
}
|
||||
break;
|
||||
case ROOTS_CURSOR_MOVE:
|
||||
view = roots_seat_get_focused_view(seat);
|
||||
view = roots_seat_get_focus(seat);
|
||||
if (view != NULL) {
|
||||
double dx = cursor->cursor->x - cursor->offs_x;
|
||||
double dy = cursor->cursor->y - cursor->offs_y;
|
||||
|
|
@ -67,7 +67,7 @@ static void roots_cursor_update_position(struct roots_cursor *cursor,
|
|||
}
|
||||
break;
|
||||
case ROOTS_CURSOR_RESIZE:
|
||||
view = roots_seat_get_focused_view(seat);
|
||||
view = roots_seat_get_focus(seat);
|
||||
if (view != NULL) {
|
||||
double dx = cursor->cursor->x - cursor->offs_x;
|
||||
double dy = cursor->cursor->y - cursor->offs_y;
|
||||
|
|
@ -111,7 +111,7 @@ static void roots_cursor_update_position(struct roots_cursor *cursor,
|
|||
}
|
||||
break;
|
||||
case ROOTS_CURSOR_ROTATE:
|
||||
view = roots_seat_get_focused_view(seat);
|
||||
view = roots_seat_get_focus(seat);
|
||||
if (view != NULL) {
|
||||
int ox = view->x + view->wlr_surface->current->width/2,
|
||||
oy = view->y + view->wlr_surface->current->height/2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue