From fe7cf64407581888a2da70db32a3dff822a27888 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Thu, 8 Mar 2012 16:28:47 +0100 Subject: [PATCH] Fix while client_gb_titlebar --- src/client.c | 2 +- src/wmfs.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.c b/src/client.c index 3450f54..bea7ea8 100644 --- a/src/client.c +++ b/src/client.c @@ -160,7 +160,7 @@ client_gb_titlebar(Window w) if(!c->titlebar) return NULL; - while(c && c->titlebar->win != w) + while(c) { if(c->titlebar->win == w) return c; diff --git a/src/wmfs.h b/src/wmfs.h index ab3e38c..34511fb 100644 --- a/src/wmfs.h +++ b/src/wmfs.h @@ -114,7 +114,7 @@ struct status_ctx { struct barwin *barwin; struct theme *theme; -#define STATUS_BLOCK_REFRESH 0x01 +#define STATUS_BLOCK_REFRESH 0x01 Flags flags; char *status; bool update;