[hackers] [wmii] Fix some sizing bugs.

From: Kris Maglione <jg_AT_suckless.org>
Date: Wed Jul 04 00:50:13 2007

changeset: 2194:12f0f51290be
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Tue Jul 03 18:46:03 2007 -0400
summary: Fix some sizing bugs.

diff -r c8f3e07f17d9 -r 12f0f51290be cmd/wmii/client.c
--- a/cmd/wmii/client.c Tue Jul 03 10:16:14 2007 -0400
+++ b/cmd/wmii/client.c Tue Jul 03 18:46:03 2007 -0400
@@ -231,14 +231,13 @@ gravclient(Client *c, Rectangle rd) {
                 r = gravitate(r, c->r, h->grav);
                 if(h->gravstatic)
                         r = rectaddpt(r, sp);
- r = frame2client(nil, r);
- return r;
+ return frame2client(nil, r);
         }else {
                 r = client2frame(nil, rd);
                 r = gravitate(rd, r, h->grav);
                 if(h->gravstatic)
                         r = rectsubpt(r, sp);
- return r;
+ return client2frame(nil, r);
         }
 }
 
@@ -392,7 +391,7 @@ configure_client(Client *c) {
         XConfigureEvent e;
         Rectangle r;
 
- r = insetrect(c->r, -c->border);
+ r = rectsubpt(c->r, Pt(c->border, c->border));
 
         e.type = ConfigureNotify;
         e.event = c->w.w;
Received on Wed Jul 04 2007 - 00:50:13 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:57:33 UTC