summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorgarbeam@gmail.com <unknown>2011-07-29 20:01:22 +0200
committergarbeam@gmail.com <unknown>2011-07-29 20:01:22 +0200
commit0de4197cc5e8e81d94d0faffbaf46abab4d44d1a (patch)
treee28bf0daec67f4fbd455c9af15a0b1738c916c1a /dwm.c
parentapplied anonymous code cleanup patch (diff)
downloaddwm-0de4197cc5e8e81d94d0faffbaf46abab4d44d1a.tar.gz
dwm-0de4197cc5e8e81d94d0faffbaf46abab4d44d1a.zip
applied Peter Hartlichs nice interim Xinerama and map fix patches, for debugging purposes I also added his transient test driver
Diffstat (limited to '')
-rw-r--r--dwm.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index 402b2b9..db0fdfb 100644
--- a/dwm.c
+++ b/dwm.c
@@ -389,7 +389,6 @@ arrange(Monitor *m) {
389 showhide(m->stack); 389 showhide(m->stack);
390 else for(m = mons; m; m = m->next) 390 else for(m = mons; m; m = m->next)
391 showhide(m->stack); 391 showhide(m->stack);
392 focus(NULL);
393 if(m) 392 if(m)
394 arrangemon(m); 393 arrangemon(m);
395 else for(m = mons; m; m = m->next) 394 else for(m = mons; m; m = m->next)
@@ -598,6 +597,7 @@ configurenotify(XEvent *e) {
598 updatebars(); 597 updatebars();
599 for(m = mons; m; m = m->next) 598 for(m = mons; m; m = m->next)
600 XMoveResizeWindow(dpy, m->barwin, m->wx, m->by, m->ww, bh); 599 XMoveResizeWindow(dpy, m->barwin, m->wx, m->by, m->ww, bh);
600 focus(NULL);
601 arrange(NULL); 601 arrange(NULL);
602 } 602 }
603 } 603 }
@@ -1154,9 +1154,13 @@ manage(Window w, XWindowAttributes *wa) {
1154 attach(c); 1154 attach(c);
1155 attachstack(c); 1155 attachstack(c);
1156 XMoveResizeWindow(dpy, c->win, c->x + 2 * sw, c->y, c->w, c->h); /* some windows require this */ 1156 XMoveResizeWindow(dpy, c->win, c->x + 2 * sw, c->y, c->w, c->h); /* some windows require this */
1157 XMapWindow(dpy, c->win);
1158 setclientstate(c, NormalState); 1157 setclientstate(c, NormalState);
1158 if (c->mon == selmon)
1159 unfocus(selmon->sel, False);
1160 c->mon->sel = c;
1159 arrange(c->mon); 1161 arrange(c->mon);
1162 XMapWindow(dpy, c->win);
1163 focus(NULL);
1160} 1164}
1161 1165
1162void 1166void
@@ -1621,6 +1625,7 @@ void
1621tag(const Arg *arg) { 1625tag(const Arg *arg) {
1622 if(selmon->sel && arg->ui & TAGMASK) { 1626 if(selmon->sel && arg->ui & TAGMASK) {
1623 selmon->sel->tags = arg->ui & TAGMASK; 1627 selmon->sel->tags = arg->ui & TAGMASK;
1628 focus(NULL);
1624 arrange(selmon); 1629 arrange(selmon);
1625 } 1630 }
1626} 1631}
@@ -1701,6 +1706,7 @@ toggletag(const Arg *arg) {
1701 newtags = selmon->sel->tags ^ (arg->ui & TAGMASK); 1706 newtags = selmon->sel->tags ^ (arg->ui & TAGMASK);
1702 if(newtags) { 1707 if(newtags) {
1703 selmon->sel->tags = newtags; 1708 selmon->sel->tags = newtags;
1709 focus(NULL);
1704 arrange(selmon); 1710 arrange(selmon);
1705 } 1711 }
1706} 1712}
@@ -1711,6 +1717,7 @@ toggleview(const Arg *arg) {
1711 1717
1712 if(newtagset) { 1718 if(newtagset) {
1713 selmon->tagset[selmon->seltags] = newtagset; 1719 selmon->tagset[selmon->seltags] = newtagset;
1720 focus(NULL);
1714 arrange(selmon); 1721 arrange(selmon);
1715 } 1722 }
1716} 1723}
@@ -1976,6 +1983,7 @@ view(const Arg *arg) {
1976 selmon->seltags ^= 1; /* toggle sel tagset */ 1983 selmon->seltags ^= 1; /* toggle sel tagset */
1977 if(arg->ui & TAGMASK) 1984 if(arg->ui & TAGMASK)
1978 selmon->tagset[selmon->seltags] = arg->ui & TAGMASK; 1985 selmon->tagset[selmon->seltags] = arg->ui & TAGMASK;
1986 focus(NULL);
1979 arrange(selmon); 1987 arrange(selmon);
1980} 1988}
1981 1989