summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@gmail.com>2007-10-01 21:25:15 +0200
committerAnselm R. Garbe <garbeam@gmail.com>2007-10-01 21:25:15 +0200
commit95091dcad461f77a641c1c4fe87d49576b79e3fe (patch)
treec987105b7c47d33c8627bb8f1c4f6c9dbf93f0fe
parents/xterm/uxterm/ (diff)
downloaddwm-95091dcad461f77a641c1c4fe87d49576b79e3fe.tar.gz
dwm-95091dcad461f77a641c1c4fe87d49576b79e3fe.zip
reverted Peters patch to tile, I will discuss the reasons at dwm@
-rw-r--r--dwm.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/dwm.c b/dwm.c
index c4a705d..50f4ea0 100644
--- a/dwm.c
+++ b/dwm.c
@@ -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