summaryrefslogtreecommitdiff
path: root/sway/tree/container.c
diff options
context:
space:
mode:
authorErik Reider <[email protected]>2022-11-12 01:38:09 +0100
committerGitHub <[email protected]>2022-11-11 19:38:09 -0500
commit1881b01d3fe1805d371589969b4a75b9cccd8d26 (patch)
tree9fab0420f88fa980e74f90e58d90a0c36952a880 /sway/tree/container.c
parent8c907a0bcb75d0e2f8629a9c7a73048bf7594e83 (diff)
Per application color saturation support (#21)
* Initial implementation without fullscreen support * Limit saturation to 2 * Fixed saturation not working for fullscreen applications like CSGO * Fixed saturation ignoring border radius * Updated README and sway.5 man page * Rebased from Master * Added command to README * Fixed nitpicks
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index a2aa130b..684304c8 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -40,6 +40,7 @@ struct sway_container *container_create(struct sway_view *view) {
c->pending.layout = L_NONE;
c->view = view;
c->alpha = 1.0f;
+ c->saturation = 1.0f;
c->corner_radius = config->corner_radius;
if (!view) {