diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-12-16 21:48:35 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-12-16 21:48:35 +0100 |
commit | 14b0d376a8191a8873b1f866a3cfe777bbe091ce (patch) | |
tree | 6fc370efbb84ea2585cf867da4137c9a39561472 /tools/gsr-global-hotkeys/hotplug.c | |
parent | eb3660a4d81ede493943c13cba959ea061f2d536 (diff) |
Prevent focused application from receiving global hotkey keys on wayland as well (massive hack)
Diffstat (limited to 'tools/gsr-global-hotkeys/hotplug.c')
-rw-r--r-- | tools/gsr-global-hotkeys/hotplug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gsr-global-hotkeys/hotplug.c b/tools/gsr-global-hotkeys/hotplug.c index 6c82929..ba3ef9c 100644 --- a/tools/gsr-global-hotkeys/hotplug.c +++ b/tools/gsr-global-hotkeys/hotplug.c @@ -24,7 +24,7 @@ bool hotplug_event_init(hotplug_event *self) { if(fd == -1) return false; /* Not root user */ - if(bind(fd, (void *)&nls, sizeof(struct sockaddr_nl))) { + if(bind(fd, (void*)&nls, sizeof(struct sockaddr_nl))) { close(fd); return false; } |