mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-03-01 01:40:36 -05:00
Seat: abstract away a view switch statement
We have our view abstraction, so why not use it?
This commit is contained in:
parent
9a99ba604f
commit
2847e0d54f
5 changed files with 25 additions and 19 deletions
6
view.c
6
view.c
|
|
@ -57,6 +57,12 @@ view_for_each_surface(struct cg_view *view, wlr_surface_iterator_func_t iterator
|
|||
view->for_each_surface(view, iterator, data);
|
||||
}
|
||||
|
||||
struct wlr_surface *
|
||||
view_wlr_surface_at(struct cg_view *view, double sx, double sy, double *sub_x, double *sub_y)
|
||||
{
|
||||
return view->wlr_surface_at(view, sx, sy, sub_x, sub_y);
|
||||
}
|
||||
|
||||
bool
|
||||
view_is_primary(struct cg_view *view)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue