yambar/bar/private.h
Daniel Eklöf 0aef2f85ee
config: add bar.trackpad-sensitivity
This is an integer that specifies the amount of scrolling that needs
to be accumulated before a wheel-up/down event is emitted.

A higher value means you need to drag your fingers a longer distance
before the event is emitted.

The default is 30.
2021-07-01 17:15:54 +02:00

50 lines
982 B
C

#pragma once
#include "../bar/bar.h"
#include "backend.h"
struct private {
/* From bar_config */
char *monitor;
enum bar_location location;
int height;
int left_spacing, right_spacing;
int left_margin, right_margin;
int trackpad_sensitivity;
pixman_color_t background;
struct {
int width;
pixman_color_t color;
int left_margin, right_margin;
int top_margin, bottom_margin;
} border;
struct {
struct module **mods;
struct exposable **exps;
size_t count;
} left;
struct {
struct module **mods;
struct exposable **exps;
size_t count;
} center;
struct {
struct module **mods;
struct exposable **exps;
size_t count;
} right;
/* Calculated run-time */
int width;
int height_with_border;
pixman_image_t *pix;
struct {
void *data;
const struct backend *iface;
} backend;
};