diff options
author | David Robillard <d@drobilla.net> | 2018-01-28 12:08:40 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-06-27 19:30:58 +0200 |
commit | bca65c93cd0228d408e0b6029b33da6449a5b567 (patch) | |
tree | 25e83c6595dba5e2c02b8ad567c593af9b20ab4c /pugl/pugl_x11.c | |
parent | 24aef2fc55c6d84f4ce0e8a3554d2d3dcbf79ee6 (diff) | |
download | pugl-bca65c93cd0228d408e0b6029b33da6449a5b567.tar.gz pugl-bca65c93cd0228d408e0b6029b33da6449a5b567.tar.bz2 pugl-bca65c93cd0228d408e0b6029b33da6449a5b567.zip |
Consistently use uint32_t everywhere
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; |