diff options
Diffstat (limited to 'lightpipe.h')
-rw-r--r-- | lightpipe.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/lightpipe.h b/lightpipe.h index de12b42..8ea4095 100644 --- a/lightpipe.h +++ b/lightpipe.h @@ -23,12 +23,29 @@ */ #include <X11/Xlib.h> +#include <X11/Xutil.h> + +/* + * This definition comes from region.h which is not installed by + * the monolithic Xlib build system + */ +typedef struct { + short x1, x2, y1, y2; +} Box, BOX, BoxRec, *BoxPtr; + +typedef struct _XRegion { + long size; + long numRects; + BOX *rects; + BOX extents; +} REGION; typedef struct { XRectangle geometry; /* in screen space, read-only */ int border_width; /* read-only */ XRectangle damage; /* in window space, client may modify */ XImage *image; /* read-only */ + Region damage_region; /* in window space, client may modify */ } XLightPipeWindow; /* @@ -43,7 +60,7 @@ XLightPipeInit (void); */ Bool -XLightPipeAttendWindow (Display *display, Window window); +XLightPipeAttendWindow (Display *display, Window window, Bool provide_region); /* * Start monitoring all sub windows; create/destroy handled @@ -51,7 +68,7 @@ XLightPipeAttendWindow (Display *display, Window window); */ Bool -XLightPipeAttendSubwindows (Display *display, Window window); +XLightPipeAttendSubwindows (Display *display, Window window, Bool provide_region); /* * Stop monitoring window. Note that monitoring is automatically |