mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
CtrlCore: Now calling XInitThreads always before gtk_init_check
This commit is contained in:
parent
99ea736e9a
commit
ee13d043b7
1 changed files with 4 additions and 2 deletions
|
|
@ -100,6 +100,10 @@ void Ctrl::UseWayland()
|
|||
bool InitGtkApp(int argc, char **argv, const char **envptr)
|
||||
{
|
||||
LLOG(rmsecs() << " InitGtkApp");
|
||||
|
||||
XInitThreads(); // otherwise there are errors despite GuiLock
|
||||
// this has to be called before gtk_init_check, otherwise it crashes with xfce (at least
|
||||
// some versions)
|
||||
|
||||
#if GTK_CHECK_VERSION(3, 10, 0)
|
||||
String backends = "x11,wayland";
|
||||
|
|
@ -115,8 +119,6 @@ bool InitGtkApp(int argc, char **argv, const char **envptr)
|
|||
Cerr() << t_("Failed to initialized GTK app!") << "\n";
|
||||
return false;
|
||||
}
|
||||
if(Ctrl::IsX11())
|
||||
XInitThreads(); // otherwise there are errors despite GuiLock
|
||||
|
||||
EnterGuiMutex();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue