projects
/
freeglut
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
757e1ba
)
Make CTRL and SHIFT arrive properly in single (as opposed to MultiButton) mouse event...
author
Diederick Niehorster
<dcnieho@gmail.com>
Thu, 17 Jan 2013 14:53:30 +0000
(14:53 +0000)
committer
Diederick Niehorster
<dcnieho@gmail.com>
Thu, 17 Jan 2013 14:53:30 +0000
(14:53 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1496
7f0cb862
-5218-0410-a997-
914c9d46530a
src/x11/fg_xinput_x11.c
patch
|
blob
|
history
diff --git
a/src/x11/fg_xinput_x11.c
b/src/x11/fg_xinput_x11.c
index
023e068
..
b1415e9
100644
(file)
--- a/
src/x11/fg_xinput_x11.c
+++ b/
src/x11/fg_xinput_x11.c
@@
-215,7
+215,7
@@
void fgHandleExtensionEvents( XEvent* base_ev )
std_ev.xbutton.y = event->event_y;
std_ev.xbutton.x_root = event->root_x;
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;
XPutBackEvent(fgDisplay.pDisplay.Display, &std_ev);