|
@@ -186,11 +186,6 @@ 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
|
|
- }
|
194
|
189
|
int state = 0;
|
195
|
190
|
bool running = true;
|
196
|
191
|
slop::Rectangle* selection = NULL;
|
|
@@ -255,6 +250,11 @@ int app( int argc, char** argv ) {
|
255
|
250
|
printSelection( format, true, 0, 0, 0, 0, None );
|
256
|
251
|
return EXIT_FAILURE;
|
257
|
252
|
}
|
|
253
|
+ if ( !slop::isRectangleSupported() ) {
|
|
254
|
+ fprintf( stderr, "Error: Your X server doesn't support the XShape extension. There's nothing slop can do about this!\n" );
|
|
255
|
+ fprintf( stderr, " Try updating X and making sure you have XExtensions installed. (/usr/lib/libXext.so, /usr/include/X11/extensions/shape.h)\n" );
|
|
256
|
+ return EXIT_FAILURE;
|
|
257
|
+ }
|
258
|
258
|
err = xengine->grabCursor( slop::Cross );
|
259
|
259
|
if ( err != EXIT_SUCCESS ) {
|
260
|
260
|
printSelection( format, true, 0, 0, 0, 0, None );
|