summaryrefslogtreecommitdiff
path: root/shelf.c
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2007-12-12 10:10:30 +0100
committerKristian Lyngstol <kristian@windu.lyngstol.net>2007-12-12 10:10:30 +0100
commit959d071da4d1cc04666196bde8ad0f5fb143a366 (patch)
tree3ec56aef7a19a2cf5d35fde8438d1385b961aea8 /shelf.c
parent81681f754fac4859fa8369b63002fa48964cf1aa (diff)
downloadshelf-959d071da4d1cc04666196bde8ad0f5fb143a366.tar.gz
shelf-959d071da4d1cc04666196bde8ad0f5fb143a366.tar.bz2
Check for the pressence of the XShape extension
Diffstat (limited to 'shelf.c')
-rw-r--r--shelf.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/shelf.c b/shelf.c
index 9d02dfb..bcfdc52 100644
--- a/shelf.c
+++ b/shelf.c
@@ -23,7 +23,8 @@
* progress bars, notification programs, etc.
*
* Todo:
- * - Check for XShape
+ * - Check for XShape events
+ * - Handle input in a sane way
* - Animation
* - Floating resize (on scroll wheel for instance)
* - Correct damage handeling
@@ -217,6 +218,12 @@ shelfInitDisplay (CompPlugin *p,
screenPrivateIndex = allocateScreenPrivateIndex (d);
if (screenPrivateIndex < 0)
return FALSE;
+ if (!d->shapeExtension)
+ {
+ printf ("shelf: No Shape extension found. Shelfing not possible.\n");
+ freeScreenPrivateIndex (d, screenPrivateIndex);
+ return FALSE;
+ }
shelfSetTriggerKeyInitiate (d, shelfTrigger);
return TRUE;
}