aboutsummaryrefslogtreecommitdiff
path: root/tools/gsr-global-hotkeys/hotplug.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-12-16 21:48:35 +0100
committerdec05eba <dec05eba@protonmail.com>2024-12-16 21:48:35 +0100
commit14b0d376a8191a8873b1f866a3cfe777bbe091ce (patch)
tree6fc370efbb84ea2585cf867da4137c9a39561472 /tools/gsr-global-hotkeys/hotplug.c
parenteb3660a4d81ede493943c13cba959ea061f2d536 (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.c2
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;
}