summaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
Diffstat (limited to 'selection.c')
-rw-r--r--selection.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/selection.c b/selection.c
index 53d2f9d..cab8866 100644
--- a/selection.c
+++ b/selection.c
@@ -39,6 +39,9 @@ groupWindowInRegion (CompWindow *w,
BOX *box;
buf = XCreateRegion ();
+ if (!buf) {
+ return FALSE;
+ }
XIntersectRegion (w->region, src, buf);
/* buf area */