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; };