summaryrefslogtreecommitdiffhomepage
path: root/patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch')
-rw-r--r--patch/combo.c2
-rw-r--r--patch/combo.h2
-rw-r--r--patch/holdbar.c3
3 files changed, 7 insertions, 0 deletions
diff --git a/patch/combo.c b/patch/combo.c
index 3f13f16..7d1f3f2 100644
--- a/patch/combo.c
+++ b/patch/combo.c
@@ -1,10 +1,12 @@
static int combo = 0;
+#if !HOLDBAR_PATCH
void
keyrelease(XEvent *e)
{
combo = 0;
}
+#endif // !HOLDBAR_PATCH
void
combotag(const Arg *arg)
diff --git a/patch/combo.h b/patch/combo.h
index d6d141e..08be95e 100644
--- a/patch/combo.h
+++ b/patch/combo.h
@@ -1,3 +1,5 @@
+#if !HOLDBAR_PATCH
static void keyrelease(XEvent *e);
+#endif // !HOLDBAR_PATCH
static void combotag(const Arg *arg);
static void comboview(const Arg *arg); \ No newline at end of file
diff --git a/patch/holdbar.c b/patch/holdbar.c
index a7727b8..0ea1d41 100644
--- a/patch/holdbar.c
+++ b/patch/holdbar.c
@@ -15,6 +15,9 @@ keyrelease(XEvent *e)
XMoveResizeWindow(dpy, selmon->barwin, selmon->wx, selmon->by, selmon->ww, bh);
arrange(selmon);
}
+ #if COMBO_PATCH
+ combo = 0;
+ #endif // COMBO_PATCH
}
void