diff options
author | emersion <contact@emersion.fr> | 2017-12-07 00:13:06 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-12-07 00:13:06 +0100 |
commit | dfe11a2b0ef3806d3c2241e3bc8e69fc93905d8c (patch) | |
tree | 3ded6dd274fa53c0447a9142aee57de7d3f490e5 /include | |
parent | aead5019a7075a5823ae7e9255106e666e7b87de (diff) |
Add display destroy listener in screenshooter, destroy display in rootston
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_screenshooter.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_screenshooter.h b/include/wlr/types/wlr_screenshooter.h index 4bda3d3c..e8b59669 100644 --- a/include/wlr/types/wlr_screenshooter.h +++ b/include/wlr/types/wlr_screenshooter.h @@ -5,6 +5,13 @@ struct wlr_screenshooter { struct wl_global *wl_global; struct wlr_renderer *renderer; + struct wl_list screenshots; // wlr_screenshot::link + + struct wl_listener display_destroy; + + struct { + struct wl_signal destroy; + } events; void *data; }; @@ -12,6 +19,7 @@ struct wlr_screenshooter { struct wlr_screenshot { struct wl_resource *resource; struct wl_resource *output_resource; + struct wl_list link; struct wlr_output *output; struct wlr_screenshooter *screenshooter; |