mirror of https://github.com/bakkeby/patches
Adding sendmon_keepfocus patch
parent
f94e8757f6
commit
ac9f2e36aa
@ -0,0 +1,33 @@
|
||||
From 682993be3204d8d0cdae9f62ef20891387dc37ff Mon Sep 17 00:00:00 2001
|
||||
From: bakkeby <bakkeby@gmail.com>
|
||||
Date: Wed, 24 Jun 2020 17:15:36 +0200
|
||||
Subject: [PATCH] Adding sendmon_keepfocus patch
|
||||
|
||||
---
|
||||
dwm.c | 6 ++++--
|
||||
1 file changed, 4 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/dwm.c b/dwm.c
|
||||
index 4465af1..b44f496 100644
|
||||
--- a/dwm.c
|
||||
+++ b/dwm.c
|
||||
@@ -1415,12 +1415,14 @@ sendmon(Client *c, Monitor *m)
|
||||
unfocus(c, 1);
|
||||
detach(c);
|
||||
detachstack(c);
|
||||
+ arrange(c->mon);
|
||||
c->mon = m;
|
||||
c->tags = m->tagset[m->seltags]; /* assign tags of target monitor */
|
||||
attach(c);
|
||||
attachstack(c);
|
||||
- focus(NULL);
|
||||
- arrange(NULL);
|
||||
+ arrange(m);
|
||||
+ focus(c);
|
||||
+ restack(m);
|
||||
}
|
||||
|
||||
void
|
||||
--
|
||||
2.19.1
|
||||
|
Loading…
Reference in New Issue