mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-03-17 05:34:19 -04:00
seat: add cage_seat_get_focus function
This commit is contained in:
parent
2899abf95f
commit
21a8539399
2 changed files with 9 additions and 0 deletions
|
|
@ -18,6 +18,14 @@
|
|||
#include "pointer.h"
|
||||
#include "seat.h"
|
||||
|
||||
struct wlr_surface *
|
||||
cage_seat_get_focus(struct cg_seat *seat)
|
||||
{
|
||||
assert(seat != NULL);
|
||||
|
||||
return seat->wlr_seat->keyboard_state.focused_surface;
|
||||
}
|
||||
|
||||
void
|
||||
cage_seat_add_new_keyboard(struct cg_seat *seat, struct wlr_input_device *device)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue