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

@ -70,11 +70,21 @@ void tree_init() {
oc->type = CT_OUTPUT;
oc->rect = output->rect;
char *name;
asprintf(&name, "[i3 con] output %s", oc->name);
x_set_name(oc, name);
free(name);
/* add a workspace to this output */
ws = con_new(oc);
ws->type = CT_WORKSPACE;
asprintf(&(ws->name), "%d", c);
c++;
asprintf(&name, "[i3 con] workspace %s", ws->name);
x_set_name(ws, name);
free(name);
ws->fullscreen_mode = CF_OUTPUT;
ws->orientation = HORIZ;
}