From 74e57709a51e004a33f96a3d288280a74dcb7e63 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Thu, 26 Jan 2006 23:09:11 +0200 Subject: [PATCH] new additions to bar2 --- cmd/wmiibar2.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmd/wmiibar2.c b/cmd/wmiibar2.c index 1b2b77e8..bd6439d5 100644 --- a/cmd/wmiibar2.c +++ b/cmd/wmiibar2.c @@ -85,6 +85,7 @@ typedef struct { char event[5][256]; } Item; + static size_t nitems = 0; static char *sockfile = nil; static pid_t mypid = 0; @@ -94,6 +95,7 @@ static Display *dpy; static int screen_num; static char *align = nil; static char *font = nil; +static char *display = nil; /* static GC gc; static Window win; @@ -419,9 +421,11 @@ xstat(IXPServer * s, IXPConn * c) } break; case Fdisplay: - mkstat(&s->fcall.stat, qfile_name(qpath_type(map->qid.path)), - strlen(display) + mkstat(&s->fcall.stat, qfile_name(qpath_type(map->qid.path)), strlen(display), 0x0); + break; case Fnew: + mkstat(&s->fcall.stat, qfile_name(qpath_type(map->qid.path)), 0, 0x0); + break; case Fdata: case Fevent: case Fcolor: