aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_x11.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-01-28 12:08:40 +0100
committerDavid Robillard <d@drobilla.net>2019-06-27 19:30:58 +0200
commitbca65c93cd0228d408e0b6029b33da6449a5b567 (patch)
tree25e83c6595dba5e2c02b8ad567c593af9b20ab4c /pugl/pugl_x11.c
parent24aef2fc55c6d84f4ce0e8a3554d2d3dcbf79ee6 (diff)
downloadpugl-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.c4
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;