[hackers] [dwm] undo the focus optimisation patch for 5.9 || garbeam

From: <hg_AT_suckless.org>
Date: Sun, 10 Jul 2011 20:12:02 +0200 (CEST)

changeset: 1560:c6dd8bc06b44
tag: tip
user: garbeam_AT_gmail.com
date: Sun Jul 10 21:12:05 2011 +0100
files: dwm.c
description:
undo the focus optimisation patch for 5.9

diff -r 445eb8859a90 -r c6dd8bc06b44 dwm.c
--- a/dwm.c Sat Jul 09 07:57:10 2011 +0100
+++ b/dwm.c Sun Jul 10 21:12:05 2011 +0100
@@ -389,6 +389,7 @@
                 showhide(m->stack);
         else for(m = mons; m; m = m->next)
                 showhide(m->stack);
+ focus(NULL);
         if(m)
                 arrangemon(m);
         else for(m = mons; m; m = m->next)
@@ -597,7 +598,6 @@
                         updatebars();
                         for(m = mons; m; m = m->next)
                                 XMoveResizeWindow(dpy, m->barwin, m->wx, m->by, m->ww, bh);
- focus(NULL);
                         arrange(NULL);
                 }
         }
@@ -1149,10 +1149,9 @@
         attach(c);
         attachstack(c);
         XMoveResizeWindow(dpy, c->win, c->x + 2 * sw, c->y, c->w, c->h); /* some windows require this */
+ XMapWindow(dpy, c->win);
         setclientstate(c, NormalState);
         arrange(c->mon);
- XMapWindow(dpy, c->win);
- focus(c);
 }
 
 void
@@ -1617,7 +1616,6 @@
 tag(const Arg *arg) {
         if(selmon->sel && arg->ui & TAGMASK) {
                 selmon->sel->tags = arg->ui & TAGMASK;
- focus(NULL);
                 arrange(selmon);
         }
 }
@@ -1698,7 +1696,6 @@
         newtags = selmon->sel->tags ^ (arg->ui & TAGMASK);
         if(newtags) {
                 selmon->sel->tags = newtags;
- focus(NULL);
                 arrange(selmon);
         }
 }
@@ -1709,7 +1706,6 @@
 
         if(newtagset) {
                 selmon->tagset[selmon->seltags] = newtagset;
- focus(NULL);
                 arrange(selmon);
         }
 }
@@ -1975,7 +1971,6 @@
         selmon->seltags ^= 1; /* toggle sel tagset */
         if(arg->ui & TAGMASK)
                 selmon->tagset[selmon->seltags] = arg->ui & TAGMASK;
- focus(NULL);
         arrange(selmon);
 }
 
Received on Sun Jul 10 2011 - 20:12:02 CEST

This archive was generated by hypermail 2.2.0 : Sun Jul 10 2011 - 20:24:04 CEST