remove xlib thread initialization

This commit is contained in:
Travis McLane
2022-01-25 16:27:39 -06:00
parent 1920a545f4
commit b11964f0eb
+1 -8
View File
@@ -4,11 +4,10 @@
package linux
/*
#cgo linux pkg-config: gtk+-3.0 webkit2gtk-4.0 x11
#cgo linux pkg-config: gtk+-3.0 webkit2gtk-4.0
#include "gtk/gtk.h"
#include "webkit2/webkit2.h"
#include <X11/Xlib.h>
#include <stdio.h>
#include <limits.h>
@@ -106,11 +105,6 @@ ulong setupInvokeSignal(void* contentManager) {
return g_signal_connect((WebKitUserContentManager*)contentManager, "script-message-received::external", G_CALLBACK(sendMessageToBackend), NULL);
}
void initThreads() {
printf("init threads\n");
XInitThreads();
}
// These are the x,y & time of the last mouse down event
// It's used for window dragging
float xroot = 0.0f;
@@ -418,7 +412,6 @@ func (w *Window) Run() {
w.Maximise()
}
C.initThreads()
C.gtk_main()
w.Destroy()
}