mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-03-09 05:34:27 -04:00
view: implement view_from_wlr_surface in terms of wlr_surface->data pointer
This commit is contained in:
parent
1ccbacf198
commit
ba9c245393
3 changed files with 12 additions and 12 deletions
2
seat.c
2
seat.c
|
|
@ -817,7 +817,7 @@ struct cg_view *
|
|||
seat_get_focus(struct cg_seat *seat)
|
||||
{
|
||||
struct wlr_surface *prev_surface = seat->seat->keyboard_state.focused_surface;
|
||||
return view_from_wlr_surface(seat->server, prev_surface);
|
||||
return view_from_wlr_surface(prev_surface);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue