diff options
| author | Anselm R Garbe <anselm@garbe.us> | 2009-08-16 08:18:54 +0100 |
|---|---|---|
| committer | Anselm R Garbe <anselm@garbe.us> | 2009-08-16 08:18:54 +0100 |
| commit | 42750a621b3f0786e7fa3d7c9533c03c2a3d189d (patch) | |
| tree | ee3f356f8aad0dacd725817427a7fbc89e7b380a /dwm.c | |
| parent | applied Jukka's sigchld patch (diff) | |
| download | dwm-42750a621b3f0786e7fa3d7c9533c03c2a3d189d.tar.gz dwm-42750a621b3f0786e7fa3d7c9533c03c2a3d189d.zip | |
applied Jukka's cosmetic patch
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 18 |
1 files changed, 9 insertions, 9 deletions
| @@ -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 | ||
| 1596 | void | 1596 | void |
| 1597 | toggletag(const Arg *arg) { | 1597 | toggletag(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 | ||
| 1609 | void | 1609 | void |
| 1610 | toggleview(const Arg *arg) { | 1610 | toggleview(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 | } |
