From 8a6afcdcf6ef031853b55eb89ae94dae160881ae Mon Sep 17 00:00:00 2001 From: dan Date: Thu, 7 Jun 2001 23:51:27 +0000 Subject: [PATCH] Fixed a bug with the new compile time option for window numbers --- src/window.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/window.c b/src/window.c index 12b69ffc..ef0b4139 100644 --- a/src/window.c +++ b/src/window.c @@ -1790,7 +1790,7 @@ wWindowUpdateName(WWindow *wwin, char *newTitle) title = newTitle; } -#ifdef NO_WINDOW_ENUMERATOR +#ifndef NO_WINDOW_ENUMERATOR if (instIndex > 0) { sprintf(prefix, " [%i]", instIndex); @@ -1805,8 +1805,12 @@ wWindowUpdateName(WWindow *wwin, char *newTitle) wKWMSendEventMessage(wwin, WKWMChangedClient); #endif } + +#ifndef NO_WINDOW_ENUMERATOR if (instIndex > 0) wfree(title); +#endif + }