diff options
author | Dave Davenport <qball@gmpclient.org> | 2019-10-17 21:19:19 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2019-10-17 21:19:19 +0200 |
commit | aeecf34c279bbbf035f6d7be179d37936c5fe1a6 (patch) | |
tree | 5223f52349a23b57c655742ef308ad9d60b9bd5d /include | |
parent | 8590a7ccf2f73552a0501fa39c54cceae1f2f79c (diff) |
[Window] Add thumbnail of windows as option.
Diffstat (limited to 'include')
-rw-r--r-- | include/settings.h | 3 | ||||
-rw-r--r-- | include/xcb.h | 9 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/settings.h b/include/settings.h index 0c575f19..88b63a32 100644 --- a/include/settings.h +++ b/include/settings.h @@ -189,6 +189,9 @@ typedef struct /** Cache directory. */ char *cache_dir; + + /** Window Thumbnails */ + gboolean window_thumbnail; } Settings; /** Global Settings structure. */ extern Settings config; diff --git a/include/xcb.h b/include/xcb.h index c956b37f..b68caad5 100644 --- a/include/xcb.h +++ b/include/xcb.h @@ -181,4 +181,13 @@ typedef enum */ extern WindowManagerQuirk current_window_manager; +/** + * @param window the window the screenshot + * @param size Size of the thumbnail + * + * Creates a thumbnail of the window. + * + * @returns NULL if window was not found, or unmapped, otherwise returns a cairo_surface. + */ +cairo_surface_t *x11_helper_get_screenshot_surface_window ( xcb_window_t window, int size ); #endif |