summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2015-08-10 17:31:19 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2015-08-10 17:31:19 -0400
commitc10fc5b526b8ec4bb4d1fae68790b1592d12fd4d (patch)
tree9fe602e9b415d33c668f460c071597f5c558dae1
parentlayout: fixed tabs (diff)
downloadsway-c10fc5b526b8ec4bb4d1fae68790b1592d12fd4d.tar.gz
sway-c10fc5b526b8ec4bb4d1fae68790b1592d12fd4d.tar.zst
sway-c10fc5b526b8ec4bb4d1fae68790b1592d12fd4d.zip
Set view->visible to true when created
-rw-r--r--sway/layout.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/layout.c b/sway/layout.c
index 28fe33de..bec1ec49 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -186,6 +186,7 @@ void add_view(wlc_handle view_handle) {
186 view->handle = view_handle; 186 view->handle = view_handle;
187 view->parent = parent; 187 view->parent = parent;
188 view->type = C_VIEW; 188 view->type = C_VIEW;
189 view->visible = true;
189 if (title) { 190 if (title) {
190 view->name = malloc(strlen(title) + 1); 191 view->name = malloc(strlen(title) + 1);
191 strcpy(view->name, title); 192 strcpy(view->name, title);