Introduction
Introduction Statistics Contact Development Disclaimer Help
key: match types for XQueryPointer() - spoon - set dwm status
git clone git://git.codemadness.org/spoon
Log
Files
Refs
LICENSE
---
commit 4fea6b3b6c7b0effabba4f157548ef7c6d83676b
parent a905d4c153b89f46425d071486c46f77b8ab53db
Author: sin <[email protected]>
Date: Tue, 30 May 2017 12:31:22 +0100
key: match types for XQueryPointer()
Diffstat:
M key.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/key.c b/key.c
@@ -15,8 +15,8 @@ keyread(void *arg, char *buf, size_t len)
KeyCode keycode;
Window w1, w2;
int i1, i2, i3, i4;
- int modmask;
- int keymask;
+ unsigned modmask;
+ unsigned keymask;
struct keyarg *key = arg;
int on;
int i;
@@ -35,7 +35,7 @@ keyread(void *arg, char *buf, size_t len)
map = XGetModifierMapping(dpy);
for (i = 0; i < 8; i++)
if (map->modifiermap[map->max_keypermod * i] == keycode)
- keymask = 1 << i;
+ keymask = 1U << i;
XFreeModifiermap(map);
XQueryPointer(dpy, DefaultRootWindow(dpy),
&w1, &w2, &i1, &i2, &i3, &i4, &modmask);
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.