From 974562be881c86b0367519a3c3705c8257c71eac Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 25 Aug 2022 16:14:19 +0200 Subject: up --- applied/dwm-6.2-tagintostack-onemaster.diff | 34 --------------------------- cancelled/dwm-6.2-tagintostack-onemaster.diff | 34 +++++++++++++++++++++++++++ dwm.c | 9 ------- 3 files changed, 34 insertions(+), 43 deletions(-) delete mode 100644 applied/dwm-6.2-tagintostack-onemaster.diff create mode 100644 cancelled/dwm-6.2-tagintostack-onemaster.diff diff --git a/applied/dwm-6.2-tagintostack-onemaster.diff b/applied/dwm-6.2-tagintostack-onemaster.diff deleted file mode 100644 index 18fa42b..0000000 --- a/applied/dwm-6.2-tagintostack-onemaster.diff +++ /dev/null @@ -1,34 +0,0 @@ -From 43fb204a53e3f1bee47f51a2f4e52e5bf242e314 Mon Sep 17 00:00:00 2001 -From: astier -Date: Tue, 26 Feb 2019 01:04:55 +0100 -Subject: [PATCH] Attach clients from toggled tag into stack instead of master area - -New clients attach into the stack area when you toggle a new tag into -view. This means your master area will remain unchanged when toggling -views. ---- - dwm.c | 9 +++++++++ - 1 file changed, 9 insertions(+) - -diff --git a/dwm.c b/dwm.c -index 4465af1..567fa8b 100644 ---- a/dwm.c -+++ b/dwm.c -@@ -1739,6 +1739,15 @@ toggleview(const Arg *arg) - { - unsigned int newtagset = selmon->tagset[selmon->seltags] ^ (arg->ui & TAGMASK); - -+ // the first visible client should be the same after we add a new tag -+ // we also want to be sure not to mutate the focus -+ Client *const c = nexttiled(selmon->clients); -+ if (c) { -+ Client * const selected = selmon->sel; -+ pop(c); -+ focus(selected); -+ } -+ - if (newtagset) { - selmon->tagset[selmon->seltags] = newtagset; - focus(NULL); --- -2.20.1 diff --git a/cancelled/dwm-6.2-tagintostack-onemaster.diff b/cancelled/dwm-6.2-tagintostack-onemaster.diff new file mode 100644 index 0000000..18fa42b --- /dev/null +++ b/cancelled/dwm-6.2-tagintostack-onemaster.diff @@ -0,0 +1,34 @@ +From 43fb204a53e3f1bee47f51a2f4e52e5bf242e314 Mon Sep 17 00:00:00 2001 +From: astier +Date: Tue, 26 Feb 2019 01:04:55 +0100 +Subject: [PATCH] Attach clients from toggled tag into stack instead of master area + +New clients attach into the stack area when you toggle a new tag into +view. This means your master area will remain unchanged when toggling +views. +--- + dwm.c | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/dwm.c b/dwm.c +index 4465af1..567fa8b 100644 +--- a/dwm.c ++++ b/dwm.c +@@ -1739,6 +1739,15 @@ toggleview(const Arg *arg) + { + unsigned int newtagset = selmon->tagset[selmon->seltags] ^ (arg->ui & TAGMASK); + ++ // the first visible client should be the same after we add a new tag ++ // we also want to be sure not to mutate the focus ++ Client *const c = nexttiled(selmon->clients); ++ if (c) { ++ Client * const selected = selmon->sel; ++ pop(c); ++ focus(selected); ++ } ++ + if (newtagset) { + selmon->tagset[selmon->seltags] = newtagset; + focus(NULL); +-- +2.20.1 diff --git a/dwm.c b/dwm.c index 65e29b7..4bd377b 100644 --- a/dwm.c +++ b/dwm.c @@ -2012,15 +2012,6 @@ toggleview(const Arg *arg) unsigned int newtagset = selmon->tagset[selmon->seltags] ^ (arg->ui & TAGMASK); int i; - // the first visible client should be the same after we add a new tag - // we also want to be sure not to mutate the focus - Client *const c = nexttiled(selmon->clients); - if (c) { - Client * const selected = selmon->sel; - pop(c); - focus(selected); - } - if (newtagset) { selmon->tagset[selmon->seltags] = newtagset; -- cgit v1.2.3