mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-31 22:25:27 -04:00
desktop: add means of grabbing the surface at (x,y)
This commit is contained in:
parent
a7c44caeb6
commit
d683e2904f
5 changed files with 56 additions and 0 deletions
|
|
@ -112,6 +112,17 @@ cage_view_damage_part(struct cg_view *view)
|
|||
cage_view_for_each_surface(view, damage_surface_iterator, NULL);
|
||||
}
|
||||
|
||||
struct wlr_surface *
|
||||
cage_view_wlr_surface_at(struct cg_view *view, double sx, double sy, double *sub_x, double *sub_y)
|
||||
{
|
||||
assert(view != NULL);
|
||||
assert(sub_x != NULL);
|
||||
assert(sub_y != NULL);
|
||||
assert(view->impl->wlr_surface_at != NULL);
|
||||
|
||||
return view->impl->wlr_surface_at(view, sx, sy, sub_x, sub_y);
|
||||
}
|
||||
|
||||
void
|
||||
cage_view_activate(struct cg_view *view, bool activate)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue