spoon

set dwm status
git clone git://git.2f30.org/spoon.git
Log | Files | Refs | LICENSE

commit 4fea6b3b6c7b0effabba4f157548ef7c6d83676b
parent a905d4c153b89f46425d071486c46f77b8ab53db
Author: sin <sin@2f30.org>
Date:   Tue, 30 May 2017 12:31:22 +0100

key: match types for XQueryPointer()

Diffstat:
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);