Revert "Break everything^W^WUse wlr_box for sway_container"

This commit is contained in:
Drew DeVault 2018-04-06 16:13:26 -04:00 committed by GitHub
parent 656ef558a2
commit 640232eb22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 145 additions and 144 deletions

View file

@ -50,10 +50,10 @@ struct sway_container *workspace_create(struct sway_container *output,
wlr_log(L_DEBUG, "Added workspace %s for output %s", name, output->name);
struct sway_container *workspace = container_create(C_WORKSPACE);
workspace->box.x = output->box.x;
workspace->box.y = output->box.y;
workspace->box.width = output->box.width;
workspace->box.height = output->box.height;
workspace->x = output->x;
workspace->y = output->y;
workspace->width = output->width;
workspace->height = output->height;
workspace->name = !name ? NULL : strdup(name);
workspace->prev_layout = L_NONE;
workspace->layout = container_get_default_layout(output);