applied Jukka's cosmetic patch
42750a62
1 file(s) · +9 −9
| 564 | 564 | c->w = ev->width; |
|
| 565 | 565 | if(ev->value_mask & CWHeight) |
|
| 566 | 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 | 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 | 570 | c->y = m->my + (m->mh / 2 - c->h / 2); /* center in y direction */ |
|
| 571 | 571 | if((ev->value_mask & (CWX|CWY)) && !(ev->value_mask & (CWWidth|CWHeight))) |
|
| 572 | 572 | configure(c); |
|
| 1595 | 1595 | ||
| 1596 | 1596 | void |
|
| 1597 | 1597 | toggletag(const Arg *arg) { |
|
| 1598 | - | unsigned int mask; |
|
| 1598 | + | unsigned int newtags; |
|
| 1599 | 1599 | ||
| 1600 | 1600 | if(!selmon->sel) |
|
| 1601 | 1601 | return; |
|
| 1602 | - | mask = selmon->sel->tags ^ (arg->ui & TAGMASK); |
|
| 1603 | - | if(mask) { |
|
| 1604 | - | selmon->sel->tags = mask; |
|
| 1602 | + | newtags = selmon->sel->tags ^ (arg->ui & TAGMASK); |
|
| 1603 | + | if(newtags) { |
|
| 1604 | + | selmon->sel->tags = newtags; |
|
| 1605 | 1605 | arrange(); |
|
| 1606 | 1606 | } |
|
| 1607 | 1607 | } |
|
| 1608 | 1608 | ||
| 1609 | 1609 | void |
|
| 1610 | 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) { |
|
| 1614 | - | selmon->tagset[selmon->seltags] = mask; |
|
| 1613 | + | if(newtagset) { |
|
| 1614 | + | selmon->tagset[selmon->seltags] = newtagset; |
|
| 1615 | 1615 | arrange(); |
|
| 1616 | 1616 | } |
|
| 1617 | 1617 | } |
|