From af3de7dd59bcebde68f3928868b5dde198978854 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 2 Nov 2010 23:12:37 +0100 Subject: Minor cleanup: strings, unused vars, .. DEBUG strings w/ thread name nativewindow.TraceLock -> nativewindow.debug.ToolkitLock.TraceLock Sync Xmisc (DummyWindow) with NEWT's creation test scripts: awt and non-awt usage --- src/newt/native/X11Window.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/newt/native') diff --git a/src/newt/native/X11Window.c b/src/newt/native/X11Window.c index 025c0e500..7b09ffeb0 100644 --- a/src/newt/native/X11Window.c +++ b/src/newt/native/X11Window.c @@ -289,8 +289,6 @@ JNIEXPORT void JNICALL Java_com_jogamp_newt_impl_x11_X11Display_CompleteDisplay0 * Window */ -#define WINDOW_EVENT_MASK ( FocusChangeMask | SubstructureNotifyMask | StructureNotifyMask | ExposureMask ) - static int putPtrIn32Long(unsigned long * dst, uintptr_t src) { int i=0; dst[i++] = (unsigned long) ( ( src >> 0 ) & 0xFFFFFFFF ) ; @@ -1335,9 +1333,10 @@ JNIEXPORT jlong JNICALL Java_com_jogamp_newt_impl_x11_X11Window_CreateWindow0 { long xevent_mask = 0; - xevent_mask |= ButtonPressMask | ButtonReleaseMask | PointerMotionMask; - xevent_mask |= KeyPressMask | KeyReleaseMask; - xevent_mask |= WINDOW_EVENT_MASK ; + xevent_mask |= ButtonPressMask | ButtonReleaseMask | PointerMotionMask ; + xevent_mask |= KeyPressMask | KeyReleaseMask ; + xevent_mask |= FocusChangeMask | SubstructureNotifyMask | StructureNotifyMask | ExposureMask ; + XSelectInput(dpy, window, xevent_mask); } -- cgit v1.2.3