From 176daf7093f2921d230141e56e01a819b635aaff Mon Sep 17 00:00:00 2001 From: Wilkenfeld Date: Mon, 8 Jul 2024 22:57:01 +0200 Subject: [PATCH] patch bar --- dwl.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/dwl.c b/dwl.c index 61c3a37..69d2aea 100644 --- a/dwl.c +++ b/dwl.c @@ -93,7 +93,6 @@ enum { ClkTagBar, ClkLtSymbol, ClkStatus, ClkTitle, ClkClient, ClkRoot }; /* cli enum { NetWMWindowTypeDialog, NetWMWindowTypeSplash, NetWMWindowTypeToolbar, NetWMWindowTypeUtility, NetLast }; /* EWMH atoms */ #endif -enum { SWIPE_LEFT, SWIPE_RIGHT, SWIPE_DOWN, SWIPE_UP }; typedef union { int i; @@ -110,14 +109,6 @@ typedef struct { const Arg arg; } Button; -typedef struct { - unsigned int mod; - unsigned int motion; - unsigned int fingers_count; - void (*func)(const Arg *); - const Arg arg; -} Gesture; - typedef struct Monitor Monitor; typedef struct { /* Must keep these three elements in this order */ @@ -285,7 +276,6 @@ static void buffer_destroy(struct wlr_buffer *buffer); static bool buffer_begin_data_ptr_access(struct wlr_buffer *buffer, uint32_t flags, void **data, uint32_t *format, size_t *stride); static void buffer_end_data_ptr_access(struct wlr_buffer *buffer); static void buttonpress(struct wl_listener *listener, void *data); -static int ongesture(struct wlr_pointer_swipe_end_event *event); static void chvt(const Arg *arg); static void checkidleinhibitor(struct wlr_surface *exclude); static void cleanup(void); @@ -448,10 +438,6 @@ static struct wlr_box sgeom; static struct wl_list mons; static Monitor *selmon; -static uint32_t swipe_fingers = 0; -static double swipe_dx = 0; -static double swipe_dy = 0; - static char stext[256]; static struct wl_event_source *status_event_source; @@ -480,8 +466,6 @@ static xcb_atom_t netatom[NetLast]; /* attempt to encapsulate suck into one file */ #include "client.h" -static const unsigned int abzsquare = swipe_min_threshold * swipe_min_threshold; - /* function implementations */ void applybounds(Client *c, struct wlr_box *bbox)