aboutsummaryrefslogtreecommitdiff
path: root/sway/tree
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2018-04-03 00:47:45 -0400
committerDrew DeVault <sir@cmpwn.com>2018-04-04 21:57:05 -0400
commitfc9398a42e1dfc15bbb8490c049981034abb4926 (patch)
tree490f5c672ea2362b1b4cf4e34e13232df0502270 /sway/tree
parentf2153f3f28c8aa2e6738610abf09b2e2396d891a (diff)
Implement opacity command
Diffstat (limited to 'sway/tree')
-rw-r--r--sway/tree/container.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index 753f333c..3be08645 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -72,6 +72,8 @@ struct sway_container *container_create(enum sway_container_type type) {
c->layout = L_NONE;
c->workspace_layout = L_NONE;
c->type = type;
+ c->alpha = 1.0f;
+
if (type != C_VIEW) {
c->children = create_list();
}