mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-28 02:34:15 +00:00
patch bar
This commit is contained in:
parent
13b04f0441
commit
176daf7093
16
dwl.c
16
dwl.c
@ -93,7 +93,6 @@ enum { ClkTagBar, ClkLtSymbol, ClkStatus, ClkTitle, ClkClient, ClkRoot }; /* cli
|
|||||||
enum { NetWMWindowTypeDialog, NetWMWindowTypeSplash, NetWMWindowTypeToolbar,
|
enum { NetWMWindowTypeDialog, NetWMWindowTypeSplash, NetWMWindowTypeToolbar,
|
||||||
NetWMWindowTypeUtility, NetLast }; /* EWMH atoms */
|
NetWMWindowTypeUtility, NetLast }; /* EWMH atoms */
|
||||||
#endif
|
#endif
|
||||||
enum { SWIPE_LEFT, SWIPE_RIGHT, SWIPE_DOWN, SWIPE_UP };
|
|
||||||
|
|
||||||
typedef union {
|
typedef union {
|
||||||
int i;
|
int i;
|
||||||
@ -110,14 +109,6 @@ typedef struct {
|
|||||||
const Arg arg;
|
const Arg arg;
|
||||||
} Button;
|
} 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 Monitor Monitor;
|
||||||
typedef struct {
|
typedef struct {
|
||||||
/* Must keep these three elements in this order */
|
/* 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 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 buffer_end_data_ptr_access(struct wlr_buffer *buffer);
|
||||||
static void buttonpress(struct wl_listener *listener, void *data);
|
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 chvt(const Arg *arg);
|
||||||
static void checkidleinhibitor(struct wlr_surface *exclude);
|
static void checkidleinhibitor(struct wlr_surface *exclude);
|
||||||
static void cleanup(void);
|
static void cleanup(void);
|
||||||
@ -448,10 +438,6 @@ static struct wlr_box sgeom;
|
|||||||
static struct wl_list mons;
|
static struct wl_list mons;
|
||||||
static Monitor *selmon;
|
static Monitor *selmon;
|
||||||
|
|
||||||
static uint32_t swipe_fingers = 0;
|
|
||||||
static double swipe_dx = 0;
|
|
||||||
static double swipe_dy = 0;
|
|
||||||
|
|
||||||
static char stext[256];
|
static char stext[256];
|
||||||
static struct wl_event_source *status_event_source;
|
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 */
|
/* attempt to encapsulate suck into one file */
|
||||||
#include "client.h"
|
#include "client.h"
|
||||||
|
|
||||||
static const unsigned int abzsquare = swipe_min_threshold * swipe_min_threshold;
|
|
||||||
|
|
||||||
/* function implementations */
|
/* function implementations */
|
||||||
void
|
void
|
||||||
applybounds(Client *c, struct wlr_box *bbox)
|
applybounds(Client *c, struct wlr_box *bbox)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user