cleanup: introduce CT_WORKSPACE as type to avoid having to check parent->type

This commit is contained in:
Michael Stapelberg
2010-05-31 00:11:11 +02:00
parent a45dc6b3ad
commit e67c712f31
4 changed files with 12 additions and 9 deletions

View File

@ -39,6 +39,7 @@ Con *workspace_get(const char *num) {
output = con_get_output(focused);
LOG("got output %p\n", output);
workspace = con_new(output);
workspace->type = CT_WORKSPACE;
workspace->name = strdup(num);
ipc_send_event("workspace", I3_IPC_EVENT_WORKSPACE, "{\"change\":\"init\"}");