From 92d62f6f1c4d96c5dd9ba16553cfa0b9a34ff4cb Mon Sep 17 00:00:00 2001 From: K Lange Date: Sun, 23 May 2021 00:28:18 +0900 Subject: [PATCH] Fix key bindings in panel --- apps/compositor.c | 2 +- base/usr/include/toaru/yutani-server.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/compositor.c b/apps/compositor.c index 9173eef..5c743e4 100644 --- a/apps/compositor.c +++ b/apps/compositor.c @@ -1630,7 +1630,7 @@ static void handle_key_event(yutani_globals_t * yg, struct yutani_msg_key_event * req - bind message * owner - client to assign the binding to */ -static void add_key_bind(yutani_globals_t * yg, struct yutani_msg_key_bind * req, unsigned int owner) { +static void add_key_bind(yutani_globals_t * yg, struct yutani_msg_key_bind * req, uintptr_t owner) { uint32_t key_code = (((uint8_t)req->modifiers << 24) | ((uint32_t)req->key & 0xFFFFFF)); struct key_bind * bind = hashmap_get(yg->key_binds, (void*)(uintptr_t)key_code); diff --git a/base/usr/include/toaru/yutani-server.h b/base/usr/include/toaru/yutani-server.h index e4faece..4b5f2b0 100644 --- a/base/usr/include/toaru/yutani-server.h +++ b/base/usr/include/toaru/yutani-server.h @@ -304,7 +304,7 @@ typedef struct YutaniGlobals { } yutani_globals_t; struct key_bind { - unsigned int owner; + uintptr_t owner; int response; };