changeset: 1846:62a1233d88b6
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Sun Feb 11 13:32:15 2007 -0500
summary: Death to increment gaps. Please comment.
diff -r f57adb5de1eb -r 62a1233d88b6 client.c
--- a/client.c Sun Feb 11 12:36:39 2007 -0500
+++ b/client.c Sun Feb 11 13:32:15 2007 -0500
@@ -526,9 +526,6 @@ resize_client(Client *c, XRectangle *r)
return;
}
- c->rect.x = def.border;
- c->rect.y = labelh(&def.font);
-
if(f->area->sel != f)
switch(f->area->mode) {
case Colmax:
@@ -546,8 +543,13 @@ resize_client(Client *c, XRectangle *r)
}
else {
ShowWindow:
- c->rect.width = f->rect.width - 2 * def.border;
- c->rect.height = f->rect.height - def.border - labelh(&def.font);
+ c->rect.y = labelh(&def.font);
+ c->rect.width = f->rect.width;
+ c->rect.height = f->rect.height;
+ match_sizehints(c, &c->rect, False, NORTH|EAST);
+ c->rect.width -= def.border * 2;
+ c->rect.height -= labelh(&def.font) + def.border;
+ c->rect.x = (f->rect.width - c->rect.width) / 2;
XMoveResizeWindow(blz.dpy, c->win, c->rect.x, c->rect.y,
c->rect.width, c->rect.height);
map_client(c);
diff -r f57adb5de1eb -r 62a1233d88b6 column.c
--- a/column.c Sun Feb 11 12:36:39 2007 -0500
+++ b/column.c Sun Feb 11 13:32:15 2007 -0500
@@ -77,7 +77,6 @@ relax_column(Area *a) {
for(f=a->frame; f && (hx < hdiff); f=f->anext) {
unsigned int tmp = f->rect.height;
f->rect.height += hx;
- match_sizehints(f->client, &f->rect, f->area->floating, NORTH|EAST);
hdiff -= (f->rect.height - tmp);
}
}
@@ -87,10 +86,8 @@ relax_column(Area *a) {
yoff = a->rect.y + hdiff / 2;
for(f=a->frame; f; f=f->anext) {
f->rect.y = yoff;
- if(a->mode != Colmax || f == a->sel) {
- f->rect.x = a->rect.x + (a->rect.width - f->rect.width) / 2;
- yoff = f->rect.y + f->rect.height + hdiff;
- }
+ if(a->mode != Colmax || f == a->sel)
+ yoff = r_south(&f->rect) + hdiff;
}
}
@@ -154,7 +151,6 @@ arrange_column(Area *a, Bool dirty) {
f->rect.y = yoff;
f->rect.width = a->rect.width;
yoff += f->rect.height;
- match_sizehints(f->client, &f->rect, f->area->floating, NORTH|EAST);
}
break;
case Colstack:
@@ -175,8 +171,6 @@ Fallthrough:
case Colmax:
for(f=a->frame; f; f=f->anext) {
f->rect = a->rect;
- if(f == a->sel)
- match_sizehints(f->client, &f->rect, f->area->floating, NORTH|EAST);
}
break;
default:
diff -r f57adb5de1eb -r 62a1233d88b6 frame.c
--- a/frame.c Sun Feb 11 12:36:39 2007 -0500
+++ b/frame.c Sun Feb 11 13:32:15 2007 -0500
@@ -84,7 +84,7 @@ resize_frame(Frame *f, XRectangle *r) {
stickycorner = get_sticky(&f->rect, r);
f->rect = *r;
- if((f->area->mode != Colstack) || (f->area->sel == f))
+ if(f->area->floating)
match_sizehints(c, &f->rect, f->area->floating, stickycorner);
}
Received on Sun Feb 11 2007 - 19:36:15 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:11 UTC