Draw the workspace-buttons

This commit is contained in:
Axel Wagner
2010-07-26 17:21:46 +02:00
parent 72b55fdd4f
commit 8a274bd279
6 changed files with 100 additions and 11 deletions

View File

@ -104,6 +104,7 @@ static int outputs_start_map_cb(void* params_) {
new_output->ws = 0,
memset(&new_output->rect, 0, sizeof(rect));
new_output->next = NULL;
new_output->bar = XCB_NONE;
if (params->outputs == NULL) {
params->outputs = new_output;
@ -197,7 +198,7 @@ i3_output* get_output_by_name(char* name) {
i3_output* walk;
for (walk = outputs; walk != NULL; walk = walk->next) {
if (strcmp(walk->name, name)) {
if (!strcmp(walk->name, name)) {
break;
}
}