X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fx11%2Ffg_xinput_x11.c;h=b1415e9a50ad08e153cb2d06a442a77add87ff09;hb=9b7930fcbb8dde80f9b6de15bf184f7dce1adb1f;hp=023e068136439d62dc801deaaac9126ebc12f480;hpb=6dc97d7f1133eab6d075159c38f9cbd816de84e7;p=freeglut diff --git a/src/x11/fg_xinput_x11.c b/src/x11/fg_xinput_x11.c index 023e068..b1415e9 100644 --- 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);