diff options
Diffstat (limited to 'pugl/pugl_x11.c')
-rw-r--r-- | pugl/pugl_x11.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c index 6315759..6563805 100644 --- a/pugl/pugl_x11.c +++ b/pugl/pugl_x11.c @@ -275,10 +275,10 @@ translateKey(PuglView* view, XEvent* xevent, PuglEvent* event) event->key.keycode = xevent->xkey.keycode; } -static unsigned +static uint32_t translateModifiers(unsigned xstate) { - unsigned state = 0; + uint32_t state = 0; state |= (xstate & ShiftMask) ? PUGL_MOD_SHIFT : 0; state |= (xstate & ControlMask) ? PUGL_MOD_CTRL : 0; state |= (xstate & Mod1Mask) ? PUGL_MOD_ALT : 0; |