[hackers] [wmii] Draw border under titlebar, add missing function proto, fix bar border to 1px

From: Kris Maglione <jg_AT_suckless.org>
Date: Fri Feb 09 07:15:44 2007

changeset: 1804:e2ba0ff22c5e
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Fri Feb 09 01:13:02 2007 -0500
summary: Draw border under titlebar, add missing function proto, fix bar border to 1px

diff -r 1bd3b0886857 -r e2ba0ff22c5e bar.c
--- a/bar.c Fri Feb 09 01:06:15 2007 -0500
+++ b/bar.c Fri Feb 09 01:13:02 2007 -0500
@@ -66,7 +66,6 @@ draw_bar(WMScreen *s) {
         float shrink;
         Bar *b, *tb, *largest, **pb;
 
- s->bbrush.border = def.border;
         draw_tile(&s->bbrush);
         if(!s->lbar && !s->rbar)
                 goto MapBar;
diff -r 1bd3b0886857 -r e2ba0ff22c5e client.c
--- a/client.c Fri Feb 09 01:06:15 2007 -0500
+++ b/client.c Fri Feb 09 01:13:02 2007 -0500
@@ -6,6 +6,8 @@
 #include <stdlib.h>
 #include <string.h>
 #include <X11/Xatom.h>
+
+static void update_client_name(Client *c);
 
 static char *Ebadcmd = "bad command",
             *Ebadvalue = "bad value";
diff -r 1bd3b0886857 -r e2ba0ff22c5e frame.c
--- a/frame.c Fri Feb 09 01:06:15 2007 -0500
+++ b/frame.c Fri Feb 09 01:13:02 2007 -0500
@@ -184,6 +184,10 @@ draw_frame(Frame *f) {
         draw_tile(&f->grabbox);
         draw_label(&f->titlebar, f->client->name);
         draw_border(&f->tile);
+ /* XXX: Hack */
+ f->tile.rect.height = labelh(&def.font);
+ f->tile.border = 1;
+ draw_border(&f->tile);
         XCopyArea(blz.dpy, pmap, f->client->framewin, f->client->gc,
                         0, 0, f->rect.width, f->rect.height, 0, 0);
         XSync(blz.dpy, False);
diff -r 1bd3b0886857 -r e2ba0ff22c5e main.c
--- a/main.c Fri Feb 09 01:06:15 2007 -0500
+++ b/main.c Fri Feb 09 01:13:02 2007 -0500
@@ -347,7 +347,7 @@ main(int argc, char *argv[]) {
                 s->bbrush.rect.y = 0;
                 s->bbrush.color = def.normcolor;
                 s->bbrush.font = &def.font;
- s->bbrush.border = False;
+ s->bbrush.border = 1;
                 draw_bar(s);
                 XMapRaised(blz.dpy, s->barwin);
         }
Received on Fri Feb 09 2007 - 07:15:44 UTC

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