From aeecf34c279bbbf035f6d7be179d37936c5fe1a6 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Thu, 17 Oct 2019 21:19:19 +0200 Subject: [Window] Add thumbnail of windows as option. --- include/settings.h | 3 +++ include/xcb.h | 9 +++++++++ 2 files changed, 12 insertions(+) (limited to 'include') 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 -- cgit v1.2.3