path: root/uisimulator/x11/screenhack.h
diff options
authorJens Arnold <>2005-03-18 23:51:52 +0000
committerJens Arnold <>2005-03-18 23:51:52 +0000
commit74b731edc6e0495d43a37412c60cd23a24789679 (patch)
treee4d4014047b65f4cf05e9c0ba3d48a05a1eb04f9 /uisimulator/x11/screenhack.h
parent9101465ae83fd89ebcdf55fc3e831dfca74884ea (diff)
Major rework of the x11 simulator button handling. (1) Button repeat should always work correctly now, not sending a release before the repeat(s). Fixes e.g. calling the Ondio menu. (2) Button handling is done in the timer thread, not sleep()ing the main thread for extended times. Fixes slow performance of high-workload plugins (codec tests). (3) The x11 simulator now also contains the queue handling code. (4) The new code requires X11R6 because the multi-threading extension is used.
git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/x11/screenhack.h')
1 files changed, 7 insertions, 3 deletions
diff --git a/uisimulator/x11/screenhack.h b/uisimulator/x11/screenhack.h
index 084f8769bd..5c2e5321ac 100644
--- a/uisimulator/x11/screenhack.h
+++ b/uisimulator/x11/screenhack.h
@@ -28,6 +28,7 @@
#include <X11/Xlib.h>
#include <X11/Xresource.h>
#include <X11/Xos.h>
+#include <X11/Intrinsic.h>
#include "resources.h"
#include "visual.h"
@@ -38,10 +39,13 @@ extern char *progclass;
extern XrmDatabase db;
extern XrmOptionDescRec options [];
extern char *defaults [];
+extern XtAppContext app;
+extern Display* dpy;
+extern Window window;
-extern void screenhack (Display*,Window);
-extern int screenhack_handle_event(Display*, XEvent*, bool *, bool *);
-extern int screenhack_handle_events(bool *, bool *);
+extern void screenhack();
+extern int screenhack_handle_event(XEvent*, bool *);
+extern int screenhack_handle_events(bool *);
extern void screen_redraw();
extern void screen_resized();