diff options
author | Kristian Lyngstol <kristian@bohemians.org> | 2007-12-12 10:10:30 +0100 |
---|---|---|
committer | Kristian Lyngstol <kristian@windu.lyngstol.net> | 2007-12-12 10:10:30 +0100 |
commit | 959d071da4d1cc04666196bde8ad0f5fb143a366 (patch) | |
tree | 3ec56aef7a19a2cf5d35fde8438d1385b961aea8 /shelf.c | |
parent | 81681f754fac4859fa8369b63002fa48964cf1aa (diff) | |
download | shelf-959d071da4d1cc04666196bde8ad0f5fb143a366.tar.gz shelf-959d071da4d1cc04666196bde8ad0f5fb143a366.tar.bz2 |
Check for the pressence of the XShape extension
Diffstat (limited to 'shelf.c')
-rw-r--r-- | shelf.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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; } |