changeset: 2119:b9fab317c469
user: Kris Maglione <jg_AT_suckless.org>
date: Sun Apr 22 02:06:56 2007 -0400
summary: Fixed some column scaling bugs.
diff -r 47db65863e63 -r b9fab317c469 cmd/wmii/area.c
--- a/cmd/wmii/area.c Sun Apr 22 01:58:31 2007 -0400
+++ b/cmd/wmii/area.c Sun Apr 22 02:06:56 2007 -0400
@@ -12,8 +12,7 @@
#include "fns.h"
static void place_frame(Frame *f);
-static char Ebadcmd[] = "bad command",
- Ebadvalue[] = "bad value";
+static char Ebadvalue[] = "bad value";
Client *
area_selclient(Area *a) {
@@ -177,7 +176,7 @@ attach_to_area(Area *a, Frame *f, Bool s
c->floating = a->floating;
if(!a->floating) {
f->r = a->r;
- f->r.max.y = f->r.min.y + Dy(a->r) / n_frame;
+ f->r.max.y = Dy(a->r) / n_frame;
}
insert_frame(a->sel, f, False);
diff -r 47db65863e63 -r b9fab317c469 cmd/wmii/client.c
--- a/cmd/wmii/client.c Sun Apr 22 01:58:31 2007 -0400
+++ b/cmd/wmii/client.c Sun Apr 22 02:06:56 2007 -0400
@@ -41,7 +41,7 @@ create_client(XWindow w, XWindowAttribut
c->w.w = w;
c->w.r = c->r;
- c->proto = winprotocols(&c->w);
+ prop_client(c, xatom("WM_PROTOCOLS"));
prop_client(c, xatom("WM_TRANSIENT_FOR"));
prop_client(c, xatom("WM_NORMAL_HINTS"));
prop_client(c, xatom("WM_HINTS"));
diff -r 47db65863e63 -r b9fab317c469 cmd/wmii/column.c
--- a/cmd/wmii/column.c Sun Apr 22 01:58:31 2007 -0400
+++ b/cmd/wmii/column.c Sun Apr 22 02:06:56 2007 -0400
@@ -339,7 +339,7 @@ arrange_column(Area *a, Bool dirty) {
for(f=a->frame; f; f=f->anext) {
f->collapsed = False;
if(dirty)
- f->crect = Rect(0, 0, 100, 100);
+ f->r = Rect(0, 0, 100, 100);
}
break;
case Colstack:
diff -r 47db65863e63 -r b9fab317c469 cmd/wmii/frame.c
--- a/cmd/wmii/frame.c Sun Apr 22 01:58:31 2007 -0400
+++ b/cmd/wmii/frame.c Sun Apr 22 02:06:56 2007 -0400
@@ -368,8 +368,7 @@ focus_frame(Frame *f, Bool restack) {
focus_client(f->client);
- if(!a->floating
- && ((a->mode == Colstack) || (a->mode == Colmax)))
+ if(!a->floating && ((a->mode == Colstack) || (a->mode == Colmax)))
arrange_column(a, False);
if((f != old)
Received on Fri Jun 01 2007 - 03:10:09 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:57:04 UTC