aboutsummaryrefslogtreecommitdiff
path: root/sway/container.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-08-26 18:48:50 -0400
committerDrew DeVault <sir@cmpwn.com>2015-08-26 18:48:50 -0400
commiteb53f173c5cc3739149b3fafc50ab55d5503a649 (patch)
tree49eae9ae84adbe27d639005515111b324a328fad /sway/container.c
parent357af228d693e64b4ac62ef472b3df65fd25348c (diff)
parent6bbfd65735ba17ee55ee90b7021c70d68f27b55a (diff)
Merge pull request #137 from minus7/json
added json-c lib and implemented IPC get_version
Diffstat (limited to 'sway/container.c')
-rw-r--r--sway/container.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sway/container.c b/sway/container.c
index 5321e3cd..fda90e5b 100644
--- a/sway/container.c
+++ b/sway/container.c
@@ -152,7 +152,7 @@ swayc_t *new_workspace(swayc_t *output, const char *name) {
workspace->width = output->width;
workspace->height = output->height;
workspace->name = strdup(name);
- workspace->visible = true;
+ workspace->visible = false;
workspace->floating = create_list();
add_child(output, workspace);
@@ -503,18 +503,17 @@ bool swayc_is_active(swayc_t *view) {
void container_map(swayc_t *container, void (*f)(swayc_t *view, void *data), void *data) {
if (container) {
+ f(container, data);
int i;
if (container->children) {
for (i = 0; i < container->children->length; ++i) {
swayc_t *child = container->children->items[i];
- f(child, data);
container_map(child, f, data);
}
}
if (container->floating) {
for (i = 0; i < container->floating->length; ++i) {
swayc_t *child = container->floating->items[i];
- f(child, data);
container_map(child, f, data);
}
}