mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-23 20:03:10 +00:00
streamlined mouse logic further
This commit is contained in:
parent
07aced2bc6
commit
9944e76d6c
5 changed files with 0 additions and 13 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
#ifndef MOUSE_H
|
||||
#define MOUSE_H
|
||||
|
||||
struct mouse_state {
|
||||
CGPoint down_location;
|
||||
};
|
||||
|
||||
#endif
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue