output: add cage_output_damage_surface

This commit is contained in:
Jente Hidskes 2020-07-04 16:06:27 +02:00
parent 5feeb33505
commit 0e9dae18e6
No known key found for this signature in database
GPG key ID: 04BE5A29F32D91EA
3 changed files with 30 additions and 19 deletions

View file

@ -5,6 +5,7 @@
#include <wlr/types/wlr_box.h>
#include <wlr/types/wlr_output.h>
#include <wlr/types/wlr_output_damage.h>
#include <wlr/types/wlr_surface.h>
struct cg_output {
struct wlr_output *wlr_output;
@ -26,6 +27,7 @@ struct cg_output {
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);
void cage_output_get_geometry(struct cg_output *output, struct wlr_box *geometry);
void cage_output_disable(struct cg_output *output);
void cage_output_enable(struct cg_output *output);