diff options
author | 2015-08-15 14:10:44 -0500 | |
---|---|---|
committer | 2015-08-15 14:10:44 -0500 | |
commit | 9ba914747ea2d73aebaa67fae6a164612a4efe11 (patch) | |
tree | 347b7d85379a8b912caa7eb1632218f9e08da6b4 /sway | |
parent | Style fixes (diff) | |
download | sway-9ba914747ea2d73aebaa67fae6a164612a4efe11.tar.gz sway-9ba914747ea2d73aebaa67fae6a164612a4efe11.tar.zst sway-9ba914747ea2d73aebaa67fae6a164612a4efe11.zip |
Removed alignment
Diffstat (limited to 'sway')
-rw-r--r-- | sway/container.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/sway/container.c b/sway/container.c index c033f118..1f0d02aa 100644 --- a/sway/container.c +++ b/sway/container.c | |||
@@ -44,9 +44,9 @@ swayc_t *new_output(wlc_handle handle) { | |||
44 | const struct wlc_size* size = wlc_output_get_resolution(handle); | 44 | const struct wlc_size* size = wlc_output_get_resolution(handle); |
45 | 45 | ||
46 | swayc_t *output = new_swayc(C_OUTPUT); | 46 | swayc_t *output = new_swayc(C_OUTPUT); |
47 | output->width = size->w; | 47 | output->width = size->w; |
48 | output->height = size->h; | 48 | output->height = size->h; |
49 | output->handle = handle; | 49 | output->handle = handle; |
50 | 50 | ||
51 | add_child(&root_container, output); | 51 | add_child(&root_container, output); |
52 | 52 | ||
@@ -66,10 +66,10 @@ swayc_t *new_workspace(swayc_t * output, const char *name) { | |||
66 | sway_log(L_DEBUG, "Added workspace %s for output %d", name, output->handle); | 66 | sway_log(L_DEBUG, "Added workspace %s for output %d", name, output->handle); |
67 | swayc_t *workspace = new_swayc(C_WORKSPACE); | 67 | swayc_t *workspace = new_swayc(C_WORKSPACE); |
68 | 68 | ||
69 | workspace->layout = L_HORIZ; // TODO:default layout | 69 | workspace->layout = L_HORIZ; // TODO:default layout |
70 | workspace->width = output->width; | 70 | workspace->width = output->width; |
71 | workspace->height = output->height; | 71 | workspace->height = output->height; |
72 | workspace->name = strdup(name); | 72 | workspace->name = strdup(name); |
73 | workspace->visible = true; | 73 | workspace->visible = true; |
74 | 74 | ||
75 | add_child(output, workspace); | 75 | add_child(output, workspace); |
@@ -81,12 +81,12 @@ swayc_t *new_container(swayc_t *child, enum swayc_layouts layout) { | |||
81 | 81 | ||
82 | sway_log(L_DEBUG, "creating container %p around %p", cont, child); | 82 | sway_log(L_DEBUG, "creating container %p around %p", cont, child); |
83 | 83 | ||
84 | cont->layout = layout; | 84 | cont->layout = layout; |
85 | cont->width = child->width; | 85 | cont->width = child->width; |
86 | cont->height = child->height; | 86 | cont->height = child->height; |
87 | cont->x = child->x; | 87 | cont->x = child->x; |
88 | cont->y = child->y; | 88 | cont->y = child->y; |
89 | cont->visible = child->visible; | 89 | cont->visible = child->visible; |
90 | 90 | ||
91 | swayc_t *parent = replace_child(child, cont); | 91 | swayc_t *parent = replace_child(child, cont); |
92 | if (parent) { | 92 | if (parent) { |
@@ -109,8 +109,8 @@ swayc_t *new_view(swayc_t *sibling, wlc_handle handle) { | |||
109 | sway_log(L_DEBUG, "Adding new view %d:%s:%d to container %p %d", | 109 | sway_log(L_DEBUG, "Adding new view %d:%s:%d to container %p %d", |
110 | handle, title, type, sibling, sibling?sibling->type:0); | 110 | handle, title, type, sibling, sibling?sibling->type:0); |
111 | //Setup values | 111 | //Setup values |
112 | view->handle = handle; | 112 | view->handle = handle; |
113 | view->name = strdup(title); | 113 | view->name = strdup(title); |
114 | view->visible = true; | 114 | view->visible = true; |
115 | 115 | ||
116 | //Case of focused workspace, just create as child of it | 116 | //Case of focused workspace, just create as child of it |