summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/dwm.c b/dwm.c
index 5df912b..ba00afe 100644
--- a/dwm.c
+++ b/dwm.c
@@ -389,6 +389,7 @@ 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);
392 if(m) 393 if(m)
393 arrangemon(m); 394 arrangemon(m);
394 else for(m = mons; m; m = m->next) 395 else for(m = mons; m; m = m->next)
@@ -597,7 +598,6 @@ configurenotify(XEvent *e) {
597 updatebars(); 598 updatebars();
598 for(m = mons; m; m = m->next) 599 for(m = mons; m; m = m->next)
599 XMoveResizeWindow(dpy, m->barwin, m->wx, m->by, m->ww, bh); 600 XMoveResizeWindow(dpy, m->barwin, m->wx, m->by, m->ww, bh);
600 focus(NULL);
601 arrange(NULL); 601 arrange(NULL);
602 } 602 }
603 } 603 }
@@ -1149,10 +1149,9 @@ manage(Window w, XWindowAttributes *wa) {
1149 attach(c); 1149 attach(c);
1150 attachstack(c); 1150 attachstack(c);
1151 XMoveResizeWindow(dpy, c->win, c->x + 2 * sw, c->y, c->w, c->h); /* some windows require this */ 1151 XMoveResizeWindow(dpy, c->win, c->x + 2 * sw, c->y, c->w, c->h); /* some windows require this */
1152 XMapWindow(dpy, c->win);
1152 setclientstate(c, NormalState); 1153 setclientstate(c, NormalState);
1153 arrange(c->mon); 1154 arrange(c->mon);
1154 XMapWindow(dpy, c->win);
1155 focus(c);
1156} 1155}
1157 1156
1158void 1157void
@@ -1617,7 +1616,6 @@ void
1617tag(const Arg *arg) { 1616tag(const Arg *arg) {
1618 if(selmon->sel && arg->ui & TAGMASK) { 1617 if(selmon->sel && arg->ui & TAGMASK) {
1619 selmon->sel->tags = arg->ui & TAGMASK; 1618 selmon->sel->tags = arg->ui & TAGMASK;
1620 focus(NULL);
1621 arrange(selmon); 1619 arrange(selmon);
1622 } 1620 }
1623} 1621}
@@ -1698,7 +1696,6 @@ toggletag(const Arg *arg) {
1698 newtags = selmon->sel->tags ^ (arg->ui & TAGMASK); 1696 newtags = selmon->sel->tags ^ (arg->ui & TAGMASK);
1699 if(newtags) { 1697 if(newtags) {
1700 selmon->sel->tags = newtags; 1698 selmon->sel->tags = newtags;
1701 focus(NULL);
1702 arrange(selmon); 1699 arrange(selmon);
1703 } 1700 }
1704} 1701}
@@ -1709,7 +1706,6 @@ toggleview(const Arg *arg) {
1709 1706
1710 if(newtagset) { 1707 if(newtagset) {
1711 selmon->tagset[selmon->seltags] = newtagset; 1708 selmon->tagset[selmon->seltags] = newtagset;
1712 focus(NULL);
1713 arrange(selmon); 1709 arrange(selmon);
1714 } 1710 }
1715} 1711}
@@ -1975,7 +1971,6 @@ view(const Arg *arg) {
1975 selmon->seltags ^= 1; /* toggle sel tagset */ 1971 selmon->seltags ^= 1; /* toggle sel tagset */
1976 if(arg->ui & TAGMASK) 1972 if(arg->ui & TAGMASK)
1977 selmon->tagset[selmon->seltags] = arg->ui & TAGMASK; 1973 selmon->tagset[selmon->seltags] = arg->ui & TAGMASK;
1978 focus(NULL);
1979 arrange(selmon); 1974 arrange(selmon);
1980} 1975}
1981 1976