mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-11-27 06:59:54 -05: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
|
|
@ -25,6 +25,11 @@ struct cg_output {
|
|||
struct wl_list link; // cg_server::outputs
|
||||
};
|
||||
|
||||
/**
|
||||
* Iterates over all the views on an output and attempts to find the surface under the cursor.
|
||||
*/
|
||||
void cage_output_surface_at(struct cg_output *output, double lx, double ly, struct wlr_surface **surface, double *sx,
|
||||
double *sy);
|
||||
void cage_output_damage_whole(struct cg_output *output);
|
||||
void cage_output_damage_region(struct cg_output *output, struct wlr_box *region);
|
||||
void cage_output_damage_surface(struct cg_output *output, struct wlr_surface *surface, int sx, int sy);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue