streamlined mouse logic further

This commit is contained in:
FelixKratz 2021-08-23 19:30:34 +02:00
parent 07aced2bc6
commit 9944e76d6c
5 changed files with 0 additions and 13 deletions

View file

@ -4,7 +4,6 @@ extern struct event_loop g_event_loop;
extern struct process_manager g_process_manager; extern struct process_manager g_process_manager;
extern struct display_manager g_display_manager; extern struct display_manager g_display_manager;
extern struct bar_manager g_bar_manager; extern struct bar_manager g_bar_manager;
extern struct mouse_state g_mouse_state;
extern struct window_manager g_window_manager; extern struct window_manager g_window_manager;
extern int g_connection; extern int g_connection;

View file

@ -1,11 +1,9 @@
#include "event_tap.h" #include "event_tap.h"
extern struct event_loop g_event_loop; extern struct event_loop g_event_loop;
extern struct mouse_state g_mouse_state;
#pragma clang diagnostic push #pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wswitch" #pragma clang diagnostic ignored "-Wswitch"
static bool consume_mouse_click;
static EVENT_TAP_CALLBACK(mouse_handler) static EVENT_TAP_CALLBACK(mouse_handler)
{ {
switch (type) { switch (type) {

View file

@ -45,7 +45,6 @@
#include "graph_data.h" #include "graph_data.h"
#include "bar_item.h" #include "bar_item.h"
#include "bar_manager.h" #include "bar_manager.h"
#include "mouse.h"
#include "event_loop.c" #include "event_loop.c"
#include "event.c" #include "event.c"

View file

@ -1,8 +0,0 @@
#ifndef MOUSE_H
#define MOUSE_H
struct mouse_state {
CGPoint down_location;
};
#endif

View file

@ -26,7 +26,6 @@ void *g_workspace_context;
struct display_manager g_display_manager; struct display_manager g_display_manager;
struct daemon g_daemon; struct daemon g_daemon;
struct bar_manager g_bar_manager; struct bar_manager g_bar_manager;
struct mouse_state g_mouse_state;
struct event_tap g_event_tap; struct event_tap g_event_tap;
int g_connection; int g_connection;