cage: free window title

This commit is contained in:
Jente Hidskes 2019-01-25 09:02:38 +01:00
parent c00ac5c462
commit 6ebc684ee6
No known key found for this signature in database
GPG key ID: 04BE5A29F32D91EA

3
cage.c
View file

@ -55,12 +55,13 @@ set_window_title(struct cg_server *server, struct cg_view *view)
return;
}
const char *title = view_get_title(view);
char *title = view_get_title(view);
if (is_wl) {
wlr_wl_output_set_title(output, title);
} else if (is_x11) {
wlr_x11_output_set_title(output, title);
}
free(title);
}
static bool