[hackers] [wmii] Bigger target area for border resizals. Fix to rc.wmii.

From: Kris Maglione <jg_AT_suckless.org>
Date: Fri Feb 23 21:14:22 2007

changeset: 1944:5b981e3b39a1
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Fri Feb 23 15:11:39 2007 -0500
summary: Bigger target area for border resizals. Fix to rc.wmii.

diff -r 5c2b307b4672 -r 5b981e3b39a1 frame.c
--- a/frame.c Fri Feb 23 14:05:46 2007 -0500
+++ b/frame.c Fri Feb 23 15:11:39 2007 -0500
@@ -239,13 +239,14 @@ draw_frame(Frame *f) {
         br.border = 1;
         br.rect.width += br.rect.x;
         br.rect.x = 0;
- f->titlebar.x = br.rect.x + 1;
- f->titlebar.height = br.rect.height - 1;
- f->titlebar.y = br.rect.y + 1;
- f->titlebar.width = br.rect.width - 2;
+ f->titlebar.x = br.rect.x + 3;
+ f->titlebar.height = br.rect.height - 3;
+ f->titlebar.y = br.rect.y + 3;
+ f->titlebar.width = br.rect.width - 6;
         draw_border(&br);
         br.rect.height = f->rect.height;
- draw_border(&br);
+ if(def.border)
+ draw_border(&br);
 
         if(f->client->urgent)
                 br.color.bg = br.color.fg;
diff -r 5c2b307b4672 -r 5b981e3b39a1 rc/rc.wmii
--- a/rc/rc.wmii Fri Feb 23 14:05:46 2007 -0500
+++ b/rc/rc.wmii Fri Feb 23 15:11:39 2007 -0500
@@ -167,6 +167,7 @@ fn Key-$MODKEY-Shift-c {
 }
 fn Key-$MODKEY-Shift-t {
         wmiir xwrite /client/`{wmiir read /client/sel/ctl}^/tags `{read_tags | wmiimenu} &
+}
 
 for(i in `{seq 0 9}) {
         fn Key-$MODKEY-$i {
Received on Fri Feb 23 2007 - 21:14:22 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:51 UTC