# HG changeset patch # User Chris Cannam # Date 1326910388 0 # Node ID b0fde2a601883309706389d57c1f5763a7bf4432 # Parent 0696d02f0f3f62ab6e77fc1ddb6b9949ca066f01 Remove X11 stuff from svcore diff -r 0696d02f0f3f -r b0fde2a60188 system/Init.cpp --- a/system/Init.cpp Fri Jan 13 17:42:58 2012 +0000 +++ b/system/Init.cpp Wed Jan 18 18:13:08 2012 +0000 @@ -17,26 +17,6 @@ #include -#ifdef Q_WS_X11 -#include -#include -#include -#include - -static int handle_x11_error(Display *dpy, XErrorEvent *err) -{ - char errstr[256]; - XGetErrorText(dpy, err->error_code, errstr, 256); - if (err->error_code != BadWindow) { - std::cerr << "Sonic Visualiser: X Error: " - << errstr << " " << int(err->error_code) - << "\nin major opcode: " - << int(err->request_code) << std::endl; - } - return 0; -} -#endif - #ifdef Q_WS_WIN32 #include @@ -77,10 +57,6 @@ extern void svSystemSpecificInitialisation() { -#ifdef Q_WS_X11 - XSetErrorHandler(handle_x11_error); -#endif - #ifdef Q_WS_WIN32 redirectStderr();