[hackers] [dwm] fixed an issue in Peter's patch (it is no good idea to restack() all clients on enternotify()

From: Anselm R. Garbe <garbeam_AT_gmail.com>
Date: Sun Sep 30 18:34:22 2007

changeset: 1018:03a4ca076c53
tag: tip
user: Anselm R. Garbe <garbeam_AT_gmail.com>
date: Sun Sep 30 18:33:05 2007 +0200
summary: fixed an issue in Peter's patch (it is no good idea to restack() all clients on enternotify()

diff -r 585e3422edc8 -r 03a4ca076c53 dwm.c
--- a/dwm.c Sun Sep 30 12:47:08 2007 +0200
+++ b/dwm.c Sun Sep 30 18:33:05 2007 +0200
@@ -648,7 +648,8 @@ enternotify(XEvent *e) {
                 return;
         if((c = getclient(ev->window))) {
                 focus(c);
- restack();
+ if(ISTILE && !c->isfloating)
+ restack();
         }
         else if(ev->window == root) {
                 selscreen = True;
Received on Sun Sep 30 2007 - 18:34:22 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:58:23 UTC