|
@@ -74,13 +74,7 @@ slop::SlopSelection slop::SlopSelect( slop::SlopOptions* options, bool* cancelle
|
74
|
74
|
// Set up x11 temporarily
|
75
|
75
|
x11 = new X11(options->xdisplay);
|
76
|
76
|
XErrorHandler ph = XSetErrorHandler(slop::TmpXError);
|
77
|
|
- try {
|
78
|
|
- keyboard = new Keyboard( x11 );
|
79
|
|
- } catch (...) {
|
80
|
|
- if ( !quiet && !options->nokeyboard) {
|
81
|
|
- std::cerr << "Failed to grab keyboard, continuing...\n";
|
82
|
|
- }
|
83
|
|
- }
|
|
77
|
+ keyboard = new Keyboard( x11 );
|
84
|
78
|
XSetErrorHandler(ph);
|
85
|
79
|
bool success = false;
|
86
|
80
|
std::string errorstring = "";
|