From 805baaec27787937c26302c75e0984ca0a10d0d5 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sat, 12 Feb 2022 19:37:53 +0100 Subject: [PATCH] Fixing send to tag selmon on others monitors --- config.h | 6 +++--- dwm.c | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config.h b/config.h index 9474943..3ad2f59 100644 --- a/config.h +++ b/config.h @@ -101,7 +101,7 @@ static const Rule rules[] = { static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ static const int nmaster = 1; /* number of clients in master area */ -static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ +static const int resizehints = 0; /* 1 means respect size hints in tiled resizals */ static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */ static const int decorhints = 1; /* 1 means respect decoration hints */ @@ -133,7 +133,7 @@ static const BarRule barrules[] = { static const MonitorRule monrules[] = { /* monitor layout mfact nmaster showbar tagset */ - { 1, 0, -1, -1, -1, 1 << 5 }, + { 1, 2, -1, -1, -1, 1 << 5 }, { 2, 0, -1, -1, -1, 1 << 4 }, { -1, 0, -1, -1, -1, 0 }, // default }; @@ -194,7 +194,7 @@ static Key keys[] = { { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, { MODKEY|ShiftMask, XK_f, setlayout, {.v = &layouts[1]} }, { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, - { MODKEY, XK_d, setlayout, {.v = &layouts[3]} }, + { MODKEY, XK_semicolon, setlayout, {.v = &layouts[3]} }, { MODKEY, XK_space, setlayout, {0} }, { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, { MODKEY, XK_f, togglefullscreen, {0} }, diff --git a/dwm.c b/dwm.c index 79101ac..bdba4a5 100644 --- a/dwm.c +++ b/dwm.c @@ -2606,6 +2606,7 @@ tag(const Arg *arg) return; selmon->sel->tags = newtags; selmon->sel->mon = m; + m->sel = selmon->sel; arrange(m); break; } @@ -2742,6 +2743,7 @@ toggleview(const Arg *arg) if (!m->tagset[m->seltags]) { m->tagset[m->seltags] |= findfirstunusedtag(); } + m->sel = NULL; attachclients(m); arrange(m); }