mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-23 11:53:02 +00:00
removed unused mouse callbacks
This commit is contained in:
parent
cf1a2b93db
commit
a62488c0b7
2 changed files with 0 additions and 25 deletions
12
src/event.c
12
src/event.c
|
@ -250,10 +250,6 @@ out:
|
|||
return EVENT_SUCCESS;
|
||||
}
|
||||
|
||||
static EVENT_CALLBACK(EVENT_HANDLER_MOUSE_DOWN) {
|
||||
return EVENT_SUCCESS;
|
||||
}
|
||||
|
||||
static EVENT_CALLBACK(EVENT_HANDLER_MOUSE_UP) {
|
||||
CGPoint point = CGEventGetLocation(context);
|
||||
|
||||
|
@ -264,11 +260,3 @@ static EVENT_CALLBACK(EVENT_HANDLER_MOUSE_UP) {
|
|||
bar_item_on_click(bar_item);
|
||||
return EVENT_SUCCESS;
|
||||
}
|
||||
|
||||
static EVENT_CALLBACK(EVENT_HANDLER_MOUSE_DRAGGED) {
|
||||
return EVENT_SUCCESS;
|
||||
}
|
||||
|
||||
static EVENT_CALLBACK(EVENT_HANDLER_MOUSE_MOVED) {
|
||||
return EVENT_SUCCESS;
|
||||
}
|
||||
|
|
13
src/event.h
13
src/event.h
|
@ -20,10 +20,7 @@ static EVENT_CALLBACK(EVENT_HANDLER_SYSTEM_WOKE);
|
|||
static EVENT_CALLBACK(EVENT_HANDLER_BAR_REFRESH);
|
||||
static EVENT_CALLBACK(EVENT_HANDLER_SHELL_REFRESH);
|
||||
static EVENT_CALLBACK(EVENT_HANDLER_DAEMON_MESSAGE);
|
||||
static EVENT_CALLBACK(EVENT_HANDLER_MOUSE_DOWN);
|
||||
static EVENT_CALLBACK(EVENT_HANDLER_MOUSE_UP);
|
||||
static EVENT_CALLBACK(EVENT_HANDLER_MOUSE_DRAGGED);
|
||||
static EVENT_CALLBACK(EVENT_HANDLER_MOUSE_MOVED);
|
||||
|
||||
#define EVENT_QUEUED 0x0
|
||||
#define EVENT_PROCESSED 0x1
|
||||
|
@ -54,11 +51,7 @@ enum event_type
|
|||
BAR_REFRESH,
|
||||
SHELL_REFRESH,
|
||||
DAEMON_MESSAGE,
|
||||
MOUSE_DOWN,
|
||||
MOUSE_UP,
|
||||
MOUSE_DRAGGED,
|
||||
MOUSE_MOVED,
|
||||
|
||||
|
||||
EVENT_TYPE_COUNT
|
||||
};
|
||||
|
@ -83,10 +76,7 @@ static const char *event_type_str[] =
|
|||
[BAR_REFRESH] = "bar_refresh",
|
||||
[SHELL_REFRESH] = "shell_refresh",
|
||||
[DAEMON_MESSAGE] = "daemon_message",
|
||||
[MOUSE_DOWN] = "mouse_down",
|
||||
[MOUSE_UP] = "mouse_up",
|
||||
[MOUSE_DRAGGED] = "mouse_dragged",
|
||||
[MOUSE_MOVED] = "mouse_moved",
|
||||
|
||||
[EVENT_TYPE_COUNT] = "event_type_count"
|
||||
};
|
||||
|
@ -104,10 +94,7 @@ static event_callback *event_handler[] =
|
|||
[DISPLAY_MOVED] = EVENT_HANDLER_DISPLAY_MOVED,
|
||||
[DISPLAY_RESIZED] = EVENT_HANDLER_DISPLAY_RESIZED,
|
||||
[DISPLAY_CHANGED] = EVENT_HANDLER_DISPLAY_CHANGED,
|
||||
[MOUSE_DOWN] = EVENT_HANDLER_MOUSE_DOWN,
|
||||
[MOUSE_UP] = EVENT_HANDLER_MOUSE_UP,
|
||||
[MOUSE_DRAGGED] = EVENT_HANDLER_MOUSE_DRAGGED,
|
||||
[MOUSE_MOVED] = EVENT_HANDLER_MOUSE_MOVED,
|
||||
|
||||
[MENU_BAR_HIDDEN_CHANGED] = EVENT_HANDLER_MENU_BAR_HIDDEN_CHANGED,
|
||||
[SYSTEM_WOKE] = EVENT_HANDLER_SYSTEM_WOKE,
|
||||
|
|
Loading…
Reference in a new issue