mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 05:37:29 +02:00
Use XInitThreads() on X11 to enable loading the visualizer module
This commit is contained in:
@@ -37,6 +37,10 @@
|
|||||||
#ifdef WITH_BREAKPAD
|
#ifdef WITH_BREAKPAD
|
||||||
#include "breakpad/BreakPad.h"
|
#include "breakpad/BreakPad.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef Q_WS_X11 // This is probably a very bad idea with Qt5 anyway... because (if at all) X lives in a QPA plugin
|
||||||
|
#include <X11/Xlib.h>
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -138,6 +142,10 @@ main( int argc, char *argv[] )
|
|||||||
#endif // Q_WS_MAC
|
#endif // Q_WS_MAC
|
||||||
#endif //Q_OS_WIN
|
#endif //Q_OS_WIN
|
||||||
|
|
||||||
|
#ifdef Q_WS_X11
|
||||||
|
XInitThreads();
|
||||||
|
#endif
|
||||||
|
|
||||||
TomahawkApp a( argc, argv );
|
TomahawkApp a( argc, argv );
|
||||||
|
|
||||||
// MUST register StateHash ****before*** initing TomahawkSettingsGui as constructor of settings does upgrade before Gui subclass registers type
|
// MUST register StateHash ****before*** initing TomahawkSettingsGui as constructor of settings does upgrade before Gui subclass registers type
|
||||||
|
Reference in New Issue
Block a user