From 9944e76d6c31d22e8b5201dcd55e0ab3be1325a1 Mon Sep 17 00:00:00 2001 From: FelixKratz Date: Mon, 23 Aug 2021 19:30:34 +0200 Subject: [PATCH] streamlined mouse logic further --- src/event.c | 1 - src/event_tap.c | 2 -- src/manifest.m | 1 - src/mouse.h | 8 -------- src/sketchybar.c | 1 - 5 files changed, 13 deletions(-) delete mode 100644 src/mouse.h diff --git a/src/event.c b/src/event.c index b4bf622..dcf573c 100644 --- a/src/event.c +++ b/src/event.c @@ -4,7 +4,6 @@ extern struct event_loop g_event_loop; extern struct process_manager g_process_manager; extern struct display_manager g_display_manager; extern struct bar_manager g_bar_manager; -extern struct mouse_state g_mouse_state; extern struct window_manager g_window_manager; extern int g_connection; diff --git a/src/event_tap.c b/src/event_tap.c index 0268e7e..8599acf 100644 --- a/src/event_tap.c +++ b/src/event_tap.c @@ -1,11 +1,9 @@ #include "event_tap.h" extern struct event_loop g_event_loop; -extern struct mouse_state g_mouse_state; #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wswitch" -static bool consume_mouse_click; static EVENT_TAP_CALLBACK(mouse_handler) { switch (type) { diff --git a/src/manifest.m b/src/manifest.m index 22da025..a543219 100644 --- a/src/manifest.m +++ b/src/manifest.m @@ -45,7 +45,6 @@ #include "graph_data.h" #include "bar_item.h" #include "bar_manager.h" -#include "mouse.h" #include "event_loop.c" #include "event.c" diff --git a/src/mouse.h b/src/mouse.h deleted file mode 100644 index 0528569..0000000 --- a/src/mouse.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef MOUSE_H -#define MOUSE_H - -struct mouse_state { - CGPoint down_location; -}; - -#endif diff --git a/src/sketchybar.c b/src/sketchybar.c index 2fb9c92..d8c0a55 100644 --- a/src/sketchybar.c +++ b/src/sketchybar.c @@ -26,7 +26,6 @@ void *g_workspace_context; struct display_manager g_display_manager; struct daemon g_daemon; struct bar_manager g_bar_manager; -struct mouse_state g_mouse_state; struct event_tap g_event_tap; int g_connection;