mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-19 13:46:13 +00:00
Changed: #1028 Implement GlWndProc for X11
This commit is contained in:
parent
40c3479328
commit
24d3cfbe23
3 changed files with 7 additions and 5 deletions
|
@ -36,6 +36,8 @@
|
||||||
# include <X11/extensions/Xrandr.h>
|
# include <X11/extensions/Xrandr.h>
|
||||||
# endif
|
# endif
|
||||||
# include <X11/Xatom.h>
|
# include <X11/Xatom.h>
|
||||||
|
# define _NET_WM_STATE_REMOVE 0
|
||||||
|
# define _NET_WM_STATE_ADD 1
|
||||||
#endif // NL_OS_UNIX
|
#endif // NL_OS_UNIX
|
||||||
|
|
||||||
#include "nel/misc/mouse_device.h"
|
#include "nel/misc/mouse_device.h"
|
||||||
|
|
|
@ -101,7 +101,7 @@ void CUnixEventEmitter::submitEvents(CEventServer & server, bool allWindows)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
processMessage (Event, server);
|
processMessage (Event, &server);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -382,7 +382,7 @@ TKey getKeyFromKeySym (KeySym keysym)
|
||||||
return KeyNOKEY;
|
return KeyNOKEY;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CUnixEventEmitter::processMessage (XEvent &event, CEventServer *server)
|
bool CUnixEventEmitter::processMessage (XEvent &event, CEventServer *server)
|
||||||
{
|
{
|
||||||
if (!server)
|
if (!server)
|
||||||
server=&_InternalServer;
|
server=&_InternalServer;
|
||||||
|
@ -437,7 +437,7 @@ void CUnixEventEmitter::processMessage (XEvent &event, CEventServer *server)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Case(MotionNotify)
|
case MotionNotify:
|
||||||
{
|
{
|
||||||
TMouseButton button=getMouseButton (event.xbutton.state);
|
TMouseButton button=getMouseButton (event.xbutton.state);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue