Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Commit

Permalink
Fix key bindings in panel
Browse files Browse the repository at this point in the history
  • Loading branch information
klange committed May 22, 2021
1 parent fb64157 commit 92d62f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/compositor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion base/usr/include/toaru/yutani-server.h
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ typedef struct YutaniGlobals {
} yutani_globals_t;

struct key_bind {
unsigned int owner;
uintptr_t owner;
int response;
};

Expand Down

0 comments on commit 92d62f6

Please sign in to comment.