aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/native/X11Window.c
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2009-10-15 00:24:36 -0700
committerSven Gothel <[email protected]>2009-10-15 00:24:36 -0700
commit1d2e9cdca89e83339814abff38790367b33e6523 (patch)
tree18eb8ae9eeb74e95d47ef7c6fed7774a37783370 /src/newt/native/X11Window.c
parent545e4cd38f00d2f11153b0025fac51eed8cef797 (diff)
Fix Solaris build
Diffstat (limited to 'src/newt/native/X11Window.c')
-rwxr-xr-xsrc/newt/native/X11Window.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/newt/native/X11Window.c b/src/newt/native/X11Window.c
index 097d68cca..b6b2bbe26 100755
--- a/src/newt/native/X11Window.c
+++ b/src/newt/native/X11Window.c
@@ -397,6 +397,11 @@ JNIEXPORT void JNICALL Java_com_sun_javafx_newt_x11_X11Display_DispatchMessages
// Periodically take a break
while( num_events > 0 ) {
+ jobject jwindow = NULL;
+ XEvent evt;
+ KeySym keySym;
+ char keyChar;
+ char text[255];
XLockDisplay(dpy) ;
@@ -407,12 +412,6 @@ JNIEXPORT void JNICALL Java_com_sun_javafx_newt_x11_X11Display_DispatchMessages
return;
}
- jobject jwindow = NULL;
- XEvent evt;
- KeySym keySym;
- char keyChar;
- char text[255];
-
XNextEvent(dpy, &evt);
num_events--;