From 14b0d376a8191a8873b1f866a3cfe777bbe091ce Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 16 Dec 2024 21:48:35 +0100 Subject: Prevent focused application from receiving global hotkey keys on wayland as well (massive hack) --- tools/gsr-global-hotkeys/hotplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/gsr-global-hotkeys/hotplug.c') 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; } -- cgit v1.2.3