|
@@ -186,6 +186,11 @@ int app( int argc, char** argv ) {
|
186
|
186
|
if ( err != EXIT_SUCCESS ) {
|
187
|
187
|
return EXIT_FAILURE;
|
188
|
188
|
}
|
|
189
|
+ if ( !slop::isRectangleSupported() ) {
|
|
190
|
+ fprintf( stderr, "Error: Your X server doesn't support the XShape extension. There's nothing slop can do about this!\n" );
|
|
191
|
+ fprintf( stderr, " Try updating X and making sure you have XExtensions installed. (/usr/lib/libXext.so, /usr/include/X11/extensions/shape.h)\n" );
|
|
192
|
+ return EXIT_FAILURE;
|
|
193
|
+ }
|
189
|
194
|
int state = 0;
|
190
|
195
|
bool running = true;
|
191
|
196
|
slop::Rectangle* selection = NULL;
|