mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-11 17:59:02 +00:00
Changed: Listening for Enter/Leave window events now
This commit is contained in:
parent
89941cbcfd
commit
862ccf1353
1 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ void CUnixEventEmitter::init(Display *dpy, Window win, NL3D::IDriver *driver)
|
||||||
_win = win;
|
_win = win;
|
||||||
_driver = driver;
|
_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
|
// define Atoms used by clipboard
|
||||||
XA_CLIPBOARD = XInternAtom(dpy, "CLIPBOARD", False);
|
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
|
TODO: implements all useful events processing
|
||||||
EnterWindowMask|LeaveWindowMask|ButtonMotionMask|Button1MotionMask|Button2MotionMask|
|
ButtonMotionMask|Button1MotionMask|Button2MotionMask|
|
||||||
Button3MotionMask|Button4MotionMask|Button5MotionMask|KeymapStateMask|
|
Button3MotionMask|Button4MotionMask|Button5MotionMask|KeymapStateMask|
|
||||||
SubstructureNotifyMask|VisibilityChangeMask|FocusChangeMask|PropertyChangeMask|
|
SubstructureNotifyMask|VisibilityChangeMask|FocusChangeMask|PropertyChangeMask|
|
||||||
ColormapChangeMask|OwnerGrabButtonMask
|
ColormapChangeMask|OwnerGrabButtonMask
|
||||||
|
|
Loading…
Reference in a new issue