From b1e5a87c83e1ceb6923aa4d732bbde5e7ad262a3 Mon Sep 17 00:00:00 2001 From: kervala Date: Tue, 2 Nov 2010 21:51:07 +0100 Subject: [PATCH] Changed: Listening for Enter/Leave window events now --- code/nel/src/3d/driver/opengl/unix_event_emitter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/nel/src/3d/driver/opengl/unix_event_emitter.cpp b/code/nel/src/3d/driver/opengl/unix_event_emitter.cpp index 13a264053..87d0f7a6f 100644 --- a/code/nel/src/3d/driver/opengl/unix_event_emitter.cpp +++ b/code/nel/src/3d/driver/opengl/unix_event_emitter.cpp @@ -55,7 +55,7 @@ void CUnixEventEmitter::init(Display *dpy, Window win, NL3D::IDriver *driver) _win = win; _driver = driver; - XSelectInput (_dpy, _win, KeyPressMask|KeyReleaseMask|ButtonPressMask|ButtonReleaseMask|PointerMotionMask|StructureNotifyMask|ExposureMask); + XSelectInput (_dpy, _win, KeyPressMask|KeyReleaseMask|ButtonPressMask|ButtonReleaseMask|PointerMotionMask|StructureNotifyMask|ExposureMask|EnterWindowMask|LeaveWindowMask); // define Atoms used by clipboard XA_CLIPBOARD = XInternAtom(dpy, "CLIPBOARD", False); @@ -69,7 +69,7 @@ void CUnixEventEmitter::init(Display *dpy, Window win, NL3D::IDriver *driver) /* TODO: implements all useful events processing - EnterWindowMask|LeaveWindowMask|ButtonMotionMask|Button1MotionMask|Button2MotionMask| + ButtonMotionMask|Button1MotionMask|Button2MotionMask| Button3MotionMask|Button4MotionMask|Button5MotionMask|KeymapStateMask| SubstructureNotifyMask|VisibilityChangeMask|FocusChangeMask|PropertyChangeMask| ColormapChangeMask|OwnerGrabButtonMask