mirror of
https://github.com/labwc/labwc.git
synced 2026-02-24 01:40:15 -05:00
seat: refactor seat_focus_surface()
This commit is contained in:
parent
50bcfa00f3
commit
e400700a4a
4 changed files with 11 additions and 8 deletions
|
|
@ -118,15 +118,14 @@ seat_finish(struct server *server)
|
|||
}
|
||||
|
||||
void
|
||||
seat_focus_surface(struct wlr_surface *surface)
|
||||
seat_focus_surface(struct wlr_seat *seat, struct wlr_surface *surface)
|
||||
{
|
||||
struct wlr_seat *wlr_seat = current_seat->seat;
|
||||
if (!surface) {
|
||||
wlr_seat_keyboard_notify_clear_focus(wlr_seat);
|
||||
wlr_seat_keyboard_notify_clear_focus(seat);
|
||||
return;
|
||||
}
|
||||
struct wlr_keyboard *kb = ¤t_seat->keyboard_group->keyboard;
|
||||
wlr_seat_keyboard_notify_enter(wlr_seat, surface, kb->keycodes,
|
||||
wlr_seat_keyboard_notify_enter(seat, surface, kb->keycodes,
|
||||
kb->num_keycodes, &kb->modifiers);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue