summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/settings.h3
-rw-r--r--include/xcb.h9
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