Fix while client_gb_titlebar

This commit is contained in:
Martin Duquesnoy 2012-03-08 16:28:47 +01:00
parent 0d0cb3190a
commit fe7cf64407
2 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ client_gb_titlebar(Window w)
if(!c->titlebar) if(!c->titlebar)
return NULL; return NULL;
while(c && c->titlebar->win != w) while(c)
{ {
if(c->titlebar->win == w) if(c->titlebar->win == w)
return c; return c;

View File

@ -114,7 +114,7 @@ struct status_ctx
{ {
struct barwin *barwin; struct barwin *barwin;
struct theme *theme; struct theme *theme;
#define STATUS_BLOCK_REFRESH 0x01 #define STATUS_BLOCK_REFRESH 0x01
Flags flags; Flags flags;
char *status; char *status;
bool update; bool update;