summaryrefslogtreecommitdiffhomepage
path: root/patch/combo.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2019-09-30 23:52:51 +0200
committerbakkeby <[email protected]>2019-09-30 23:52:51 +0200
commit009819e186a33d395e785b6429e9f770ef06078c (patch)
tree4fd7c555c40b805a3cd9cb6c9f64f4adfb235fa8 /patch/combo.c
parent44d2db84ae16eeda3aa9c73c09ae20a665272592 (diff)
downloaddwm-flexipatch-009819e186a33d395e785b6429e9f770ef06078c.tar.gz
dwm-flexipatch-009819e186a33d395e785b6429e9f770ef06078c.zip
Replaced flextile with flextile-deluxe, refactored monitor rules to support predetermined layouts per tag
Diffstat (limited to 'patch/combo.c')
-rw-r--r--patch/combo.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/patch/combo.c b/patch/combo.c
index d34142a..3f13f16 100644
--- a/patch/combo.c
+++ b/patch/combo.c
@@ -1,13 +1,15 @@
static int combo = 0;
void
-keyrelease(XEvent *e) {
+keyrelease(XEvent *e)
+{
combo = 0;
}
void
-combotag(const Arg *arg) {
- if(selmon->sel && arg->ui & TAGMASK) {
+combotag(const Arg *arg)
+{
+ if (selmon->sel && arg->ui & TAGMASK) {
if (combo) {
selmon->sel->tags |= arg->ui & TAGMASK;
} else {
@@ -20,15 +22,21 @@ combotag(const Arg *arg) {
}
void
-comboview(const Arg *arg) {
+comboview(const Arg *arg)
+{
unsigned newtags = arg->ui & TAGMASK;
if (combo) {
selmon->tagset[selmon->seltags] |= newtags;
} else {
selmon->seltags ^= 1; /*toggle tagset*/
combo = 1;
- if (newtags)
+ if (newtags) {
+ #if PERTAG_PATCH
+ pertagview(&((Arg) { .ui = newtags }));
+ #else
selmon->tagset[selmon->seltags] = newtags;
+ #endif // PERTAG_PATCH
+ }
}
focus(NULL);
arrange(selmon);