Break everything^W^WUse wlr_box for sway_container

This commit is contained in:
Drew DeVault 2018-04-06 15:03:05 -04:00
parent d447460c01
commit 764489e737
13 changed files with 144 additions and 145 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->x = output->x;
workspace->y = output->y;
workspace->width = output->width;
workspace->height = output->height;
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->name = !name ? NULL : strdup(name);
workspace->prev_layout = L_NONE;
workspace->layout = container_get_default_layout(output);