mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
Fixed a bug with the new compile time option for window numbers
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user