Implement setting the WM_NAME of i3 container windows for debugging

This commit is contained in:
Michael Stapelberg
2010-11-14 16:41:46 +01:00
parent e85bb09017
commit 945632ddcb
6 changed files with 63 additions and 0 deletions

View File

@ -39,6 +39,10 @@ Con *workspace_get(const char *num) {
output = con_get_output(focused);
LOG("got output %p\n", output);
workspace = con_new(output);
char *name;
asprintf(&name, "[i3 con] workspace %s", num);
x_set_name(workspace, name);
free(name);
workspace->type = CT_WORKSPACE;
workspace->name = strdup(num);
workspace->orientation = HORIZ;