view: implement view_from_wlr_surface in terms of wlr_surface->data pointer

This commit is contained in:
Jente Hidskes 2021-12-24 08:58:19 +01:00
parent 1ccbacf198
commit ba9c245393
3 changed files with 12 additions and 12 deletions

2
seat.c
View file

@ -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