mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-19 08:56:27 -05:00
Add roots_seat_cycle_focus
This commit is contained in:
parent
bf41e7a794
commit
97ddd2d1df
5 changed files with 18 additions and 11 deletions
|
|
@ -142,7 +142,7 @@ static void roots_cursor_press_button(struct roots_cursor *cursor,
|
|||
if (state == WLR_BUTTON_PRESSED &&
|
||||
view &&
|
||||
roots_seat_has_meta_pressed(seat)) {
|
||||
roots_seat_focus_view(seat, view);
|
||||
roots_seat_set_focus(seat, view);
|
||||
|
||||
uint32_t edges;
|
||||
switch (button) {
|
||||
|
|
@ -193,7 +193,7 @@ static void roots_cursor_press_button(struct roots_cursor *cursor,
|
|||
cursor->input_events[i].device = device;
|
||||
cursor->input_events_idx = (i + 1)
|
||||
% (sizeof(cursor->input_events) / sizeof(cursor->input_events[0]));
|
||||
roots_seat_focus_view(seat, view);
|
||||
roots_seat_set_focus(seat, view);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue