mirror of
https://github.com/zoriya/dwm.git
synced 2025-12-05 23:06:19 +00:00
Fixing send to tag selmon on others monitors
This commit is contained in:
6
config.h
6
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} },
|
||||
|
||||
2
dwm.c
2
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user