summaryrefslogtreecommitdiff
path: root/src/fe-common/core/window-commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-common/core/window-commands.c')
-rw-r--r--src/fe-common/core/window-commands.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/fe-common/core/window-commands.c b/src/fe-common/core/window-commands.c
index 507cfe90..d6207d0e 100644
--- a/src/fe-common/core/window-commands.c
+++ b/src/fe-common/core/window-commands.c
@@ -143,11 +143,15 @@ static void cmd_window_prev(void)
static void cmd_window_level(const char *data)
{
+ char *level;
+
g_return_if_fail(data != NULL);
window_set_level(active_win, combine_level(active_win->level, data));
- printtext(NULL, NULL, MSGLEVEL_CLIENTNOTICE, "Window level is now %s",
- bits2level(active_win->level));
+
+ level = bits2level(active_win->level);
+ printtext(NULL, NULL, MSGLEVEL_CLIENTNOTICE, "Window level is now %s", level);
+ g_free(level);
}
static void cmd_window_server(const char *data)