aboutsummaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorc2023-12-05 20:50:32 -0500
committerc2023-12-05 20:50:32 -0500
commit6bf8456862368e600a1ced1aeb2cf4358c3df25a (patch)
tree59436f510b78fc326581cfa745664277de1055dd /dwm.c
parent5b8cfb233a4d63cd0c35b7b4a0873da97e25ecce (diff)
README
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index 3a753e6..84fc3ea 100644
--- a/dwm.c
+++ b/dwm.c
@@ -62,7 +62,7 @@
/* enums */
enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */
-enum { SchemeNorm, SchemeSel }; /* color schemes */
+enum { SchemeNorm, SchemeSel, SchemeTitle }; /* color schemes */
enum { NetSupported, NetWMName, NetWMState, NetWMCheck,
NetWMFullscreen, NetActiveWindow, NetWMWindowType,
NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */
@@ -78,6 +78,12 @@ typedef union {
} Arg;
typedef struct {
+ char *gname;
+ void (*func)(const Arg *arg);
+ const Arg arg;
+} Gesture;
+
+typedef struct {
unsigned int click;
unsigned int mask;
unsigned int button;
@@ -766,7 +772,7 @@ drawbar(Monitor *m)
if ((w = m->ww - tw - x) > bh) {
if (m->sel) {
- drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]);
+ drw_setscheme(drw, scheme[m == selmon ? SchemeTitle : SchemeNorm]);
drw_text(drw, x, 0, w - 2*sp, bh, lrpad / 2, m->sel->name, 0, False);
if (m->sel->isfloating)
drw_rect(drw, x + boxs, boxs, boxw, boxw, m->sel->isfixed, 0);