|
@@ -11,6 +11,7 @@
|
|
|
#include <X11/keysymdef.h>
|
|
|
#include <X11/XKBlib.h>
|
|
|
#include <X11/extensions/XInput2.h>
|
|
|
+#include <X11/extensions/Xfixes.h>
|
|
|
#include <GL/glx.h>
|
|
|
//#include <GL/glext.h>
|
|
|
//#include <GL/glu.h>
|
|
@@ -95,6 +96,13 @@ static void la_ScanWacomDevices(Display *display, int deviceid){
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+void laHideCursor(){
|
|
|
+ if(!MAIN.CurrentWindow) return; XFixesHideCursor(MAIN.dpy, MAIN.CurrentWindow->win);
|
|
|
+}
|
|
|
+void laShowCursor(){
|
|
|
+ if(!MAIN.CurrentWindow) return; XFixesShowCursor(MAIN.dpy, MAIN.CurrentWindow->win);
|
|
|
+}
|
|
|
+
|
|
|
Window la_CreateWindowX11(int x, int y, int w, int h, char *title, int SyncToVBlank, GLXContext* r_glc){
|
|
|
XSetWindowAttributes swa;
|
|
|
XWindowAttributes wa;
|