Make CTRL and SHIFT arrive properly in single (as opposed to MultiButton) mouse events, thanks Philipp!

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1496 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
dcnieho 2013-01-17 14:53:30 +00:00
parent d657a564e5
commit 05a9a7c907

View File

@ -215,7 +215,7 @@ void fgHandleExtensionEvents( XEvent* base_ev )
std_ev.xbutton.y = event->event_y; std_ev.xbutton.y = event->event_y;
std_ev.xbutton.x_root = event->root_x; std_ev.xbutton.x_root = event->root_x;
std_ev.xbutton.y_root = event->root_y; std_ev.xbutton.y_root = event->root_y;
std_ev.xbutton.state = BUTTON_MASK(*(unsigned int*)event->buttons.mask); std_ev.xbutton.state = event->mods.base;
std_ev.xbutton.button = event->detail; std_ev.xbutton.button = event->detail;
XPutBackEvent(fgDisplay.pDisplay.Display, &std_ev); XPutBackEvent(fgDisplay.pDisplay.Display, &std_ev);