summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe <anselm@garbe.us>2009-08-16 08:18:54 +0100
committerAnselm R Garbe <anselm@garbe.us>2009-08-16 08:18:54 +0100
commit42750a621b3f0786e7fa3d7c9533c03c2a3d189d (patch)
treeee3f356f8aad0dacd725817427a7fbc89e7b380a /dwm.c
parentapplied Jukka's sigchld patch (diff)
downloaddwm-42750a621b3f0786e7fa3d7c9533c03c2a3d189d.tar.gz
dwm-42750a621b3f0786e7fa3d7c9533c03c2a3d189d.zip
applied Jukka's cosmetic patch
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/dwm.c b/dwm.c
index e2f306c..74b7795 100644
--- a/dwm.c
+++ b/dwm.c
@@ -564,9 +564,9 @@ configurerequest(XEvent *e) {
564 c->w = ev->width; 564 c->w = ev->width;
565 if(ev->value_mask & CWHeight) 565 if(ev->value_mask & CWHeight)
566 c->h = ev->height; 566 c->h = ev->height;
567 if((c->x - m->mx + c->w) > m->mw && c->isfloating) 567 if((c->x + c->w) > m->mx + m->mw && c->isfloating)
568 c->x = m->mx + (m->mw / 2 - c->w / 2); /* center in x direction */ 568 c->x = m->mx + (m->mw / 2 - c->w / 2); /* center in x direction */
569 if((c->y - m->my + c->h) > m->mh && c->isfloating) 569 if((c->y + c->h) > m->my + m->mh && c->isfloating)
570 c->y = m->my + (m->mh / 2 - c->h / 2); /* center in y direction */ 570 c->y = m->my + (m->mh / 2 - c->h / 2); /* center in y direction */
571 if((ev->value_mask & (CWX|CWY)) && !(ev->value_mask & (CWWidth|CWHeight))) 571 if((ev->value_mask & (CWX|CWY)) && !(ev->value_mask & (CWWidth|CWHeight)))
572 configure(c); 572 configure(c);
@@ -1595,23 +1595,23 @@ togglefloating(const Arg *arg) {
1595 1595
1596void 1596void
1597toggletag(const Arg *arg) { 1597toggletag(const Arg *arg) {
1598 unsigned int mask; 1598 unsigned int newtags;
1599 1599
1600 if(!selmon->sel) 1600 if(!selmon->sel)
1601 return; 1601 return;
1602 mask = selmon->sel->tags ^ (arg->ui & TAGMASK); 1602 newtags = selmon->sel->tags ^ (arg->ui & TAGMASK);
1603 if(mask) { 1603 if(newtags) {
1604 selmon->sel->tags = mask; 1604 selmon->sel->tags = newtags;
1605 arrange(); 1605 arrange();
1606 } 1606 }
1607} 1607}
1608 1608
1609void 1609void
1610toggleview(const Arg *arg) { 1610toggleview(const Arg *arg) {
1611 unsigned int mask = selmon->tagset[selmon->seltags] ^ (arg->ui & TAGMASK); 1611 unsigned int newtagset = selmon->tagset[selmon->seltags] ^ (arg->ui & TAGMASK);
1612 1612
1613 if(mask) { 1613 if(newtagset) {
1614 selmon->tagset[selmon->seltags] = mask; 1614 selmon->tagset[selmon->seltags] = newtagset;
1615 arrange(); 1615 arrange();
1616 } 1616 }
1617} 1617}