desktop: add means of grabbing the surface at (x,y)

This commit is contained in:
Jente Hidskes 2020-07-06 22:47:46 +02:00
parent a7c44caeb6
commit d683e2904f
No known key found for this signature in database
GPG key ID: 04BE5A29F32D91EA
5 changed files with 56 additions and 0 deletions

View file

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