diff options
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 9 |
1 files changed, 3 insertions, 6 deletions
| @@ -646,11 +646,8 @@ enternotify(XEvent *e) { | |||
| 646 | 646 | ||
| 647 | if(ev->mode != NotifyNormal || ev->detail == NotifyInferior) | 647 | if(ev->mode != NotifyNormal || ev->detail == NotifyInferior) |
| 648 | return; | 648 | return; |
| 649 | if((c = getclient(ev->window))) { | 649 | if((c = getclient(ev->window))) |
| 650 | focus(c); | 650 | focus(c); |
| 651 | if(ISTILE && !c->isfloating) | ||
| 652 | restack(); | ||
| 653 | } | ||
| 654 | else if(ev->window == root) { | 651 | else if(ev->window == root) { |
| 655 | selscreen = True; | 652 | selscreen = True; |
| 656 | focus(NULL); | 653 | focus(NULL); |
| @@ -1595,7 +1592,7 @@ tile(void) { | |||
| 1595 | else { /* tile window */ | 1592 | else { /* tile window */ |
| 1596 | if(i == 1) { | 1593 | if(i == 1) { |
| 1597 | ny = way; | 1594 | ny = way; |
| 1598 | nx += mc->w + mc->border; | 1595 | nx += mc->w + 2 * mc->border; |
| 1599 | nw = waw - nx - 2 * c->border; | 1596 | nw = waw - nx - 2 * c->border; |
| 1600 | } | 1597 | } |
| 1601 | if(i + 1 == n) /* remainder */ | 1598 | if(i + 1 == n) /* remainder */ |
| @@ -1605,7 +1602,7 @@ tile(void) { | |||
| 1605 | } | 1602 | } |
| 1606 | resize(c, nx, ny, nw, nh, RESIZEHINTS); | 1603 | resize(c, nx, ny, nw, nh, RESIZEHINTS); |
| 1607 | if(n > 1 && th != wah) | 1604 | if(n > 1 && th != wah) |
| 1608 | ny = c->y + c->h + c->border; | 1605 | ny = c->y + c->h + 2 * c->border; |
| 1609 | } | 1606 | } |
| 1610 | } | 1607 | } |
| 1611 | 1608 | ||
