ipc: implement GET_WORKSPACES message type
This is the foundation to use dzen2 or similar as a complete replacement for the internal workspaces bar. A testcase is included, more documentation about the IPC interface will follow.
This commit is contained in:
@ -84,13 +84,13 @@ void workspace_set_name(Workspace *ws, const char *name) {
|
||||
errx(1, "asprintf() failed");
|
||||
|
||||
FREE(ws->name);
|
||||
FREE(ws->utf8_name);
|
||||
|
||||
ws->name = convert_utf8_to_ucs2(label, &(ws->name_len));
|
||||
if (config.font != NULL)
|
||||
ws->text_width = predict_text_width(global_conn, config.font, ws->name, ws->name_len);
|
||||
else ws->text_width = 0;
|
||||
|
||||
free(label);
|
||||
ws->utf8_name = label;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user