--- patches/00-clientmessage-focus.diff | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 patches/00-clientmessage-focus.diff diff --git a/patches/00-clientmessage-focus.diff b/patches/00-clientmessage-focus.diff new file mode 100644 index 0000000..00e7f3d --- /dev/null +++ b/patches/00-clientmessage-focus.diff _AT_@ -0,0 +1,21 @@ +Author: Eric Pruitt, https://github.com/ericpruitt/ +Description: Some poorly behaved applications (Steam, Chromium) unnecessarily +produce a _NET_ACTIVE_WINDOW when focused or clicked causing dwm to pop the +window and re-order it in the window list. This patch changes dwm's behaviour +so _NET_ACTIVE_WINDOW calls "focus" on a window without popping it to prevent +unwanted re-ordering. + +diff --git a/dwm.c b/dwm.c +index ffc8864..db2d7a5 100644 +--- a/dwm.c ++++ b/dwm.c +_AT_@ -531,7 +531,8 @@ clientmessage(XEvent *e) { + c->mon->seltags ^= 1; + c->mon->tagset[c->mon->seltags] = c->tags; + } +- pop(c); ++ focus(c); ++ arrange(c->mon); + } + } + -- 1.7.10.4 --LZvS9be/3tNcYl/X--Received on Mon Sep 17 2001 - 00:00:00 CEST
This archive was generated by hypermail 2.3.0 : Fri Feb 13 2015 - 20:36:03 CET