94a25f4827
Changelog: Windows and Linux desktop fixes
16 lines
434 B
C++
16 lines
434 B
C++
#include "my_application.h"
|
|
|
|
#ifdef GDK_WINDOWING_X11
|
|
#include <X11/Xlib.h>
|
|
#endif
|
|
|
|
int main(int argc, char** argv) {
|
|
#ifdef GDK_WINDOWING_X11
|
|
// libX11 enables its own locking only from 1.8 on; on older releases the
|
|
// tray indicator reaching X11 from another thread aborts the process.
|
|
XInitThreads();
|
|
#endif
|
|
g_autoptr(MyApplication) app = my_application_new();
|
|
return g_application_run(G_APPLICATION(app), argc, argv);
|
|
}
|