Prevent focused application from receiving global hotkey keys on wayland as well (massive hack)

This commit is contained in:
dec05eba
2024-12-16 21:48:35 +01:00
parent eb3660a4d8
commit 14b0d376a8
7 changed files with 137 additions and 36 deletions

View File

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