From e82f2a96e9c0a80755ba752e671e5a3410fd7df7 Mon Sep 17 00:00:00 2001 From: Felix Kratz Date: Thu, 9 Jun 2022 19:41:07 +0200 Subject: [PATCH] whoops --- src/custom_events.c | 4 ++-- src/custom_events.h | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/custom_events.c b/src/custom_events.c index 8e692a8..549063c 100644 --- a/src/custom_events.c +++ b/src/custom_events.c @@ -25,10 +25,10 @@ void custom_events_init(struct custom_events* custom_events) { custom_events_append(custom_events, string_copy(COMMAND_SUBSCRIBE_SYSTEM_WOKE), NULL); custom_events_append(custom_events, string_copy(COMMAND_SUBSCRIBE_MOUSE_ENTERED), NULL); custom_events_append(custom_events, string_copy(COMMAND_SUBSCRIBE_MOUSE_EXITED), NULL); - custom_events_append(custom_events, string_copy(COMMAND_SUBSCRIBE_MOUSE_ENTERED_GLOBAL), NULL); - custom_events_append(custom_events, string_copy(COMMAND_SUBSCRIBE_MOUSE_EXITED_GLOBAL), NULL); custom_events_append(custom_events, string_copy(COMMAND_SUBSCRIBE_MOUSE_CLICKED), NULL); custom_events_append(custom_events, string_copy(COMMAND_SUBSCRIBE_SYSTEM_WILL_SLEEP), NULL); + custom_events_append(custom_events, string_copy(COMMAND_SUBSCRIBE_MOUSE_ENTERED_GLOBAL), NULL); + custom_events_append(custom_events, string_copy(COMMAND_SUBSCRIBE_MOUSE_EXITED_GLOBAL), NULL); } void custom_events_append(struct custom_events* custom_events, char* name, char* notification) { diff --git a/src/custom_events.h b/src/custom_events.h index 6dc01a9..5136fb6 100644 --- a/src/custom_events.h +++ b/src/custom_events.h @@ -1,6 +1,15 @@ #pragma once #include "misc/helpers.h" +#define UPDATE_FRONT_APP_SWITCHED 1ULL +#define UPDATE_SPACE_CHANGE 1ULL << 1 +#define UPDATE_DISPLAY_CHANGE 1ULL << 2 +#define UPDATE_SYSTEM_WOKE 1ULL << 3 +#define UPDATE_MOUSE_ENTERED 1ULL << 4 +#define UPDATE_MOUSE_EXITED 1ULL << 5 +#define UPDATE_MOUSE_CLICKED 1ULL << 6 +#define UPDATE_SYSTEM_WILL_SLEEP 1ULL << 7 + extern void* g_workspace_context; extern void workspace_create_custom_observer(void** context, char* name);