diff options
author | famfo <[email protected]> | 2023-02-15 01:19:02 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2023-02-14 20:19:02 -0500 |
commit | 9f20a5263814f325035d3569768060e04c7dcb96 (patch) | |
tree | fc95512b91dd6f4cde541495ea8bea442ad8c041 /include | |
parent | e78fc3364b0440ff82becbec4ae57458374a145f (diff) |
Implement for_window support for dim_inactive (#109)
* Implement for_window support for dim_inactive
* Update file names, add check if the container is null, add docs
* Fix typo
* Update meson.build
* Update commands.c
* Update render.c
* Update container.c
* Update render.c
* Update container.h
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/commands.h | 1 | ||||
-rw-r--r-- | include/sway/config.h | 2 | ||||
-rw-r--r-- | include/sway/tree/container.h | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h index bd3cd471..68b316b4 100644 --- a/include/sway/commands.h +++ b/include/sway/commands.h @@ -122,6 +122,7 @@ sway_cmd cmd_commands; sway_cmd cmd_corner_radius; sway_cmd cmd_create_output; sway_cmd cmd_default_border; +sway_cmd cmd_default_dim_inactive; sway_cmd cmd_default_floating_border; sway_cmd cmd_default_orientation; sway_cmd cmd_dim_inactive; diff --git a/include/sway/config.h b/include/sway/config.h index c8ba7162..77df2568 100644 --- a/include/sway/config.h +++ b/include/sway/config.h @@ -477,7 +477,7 @@ struct sway_config { // SwayFX config options int corner_radius; bool smart_corner_radius; - float dim_inactive; + float default_dim_inactive; // dim_inactive colors struct { float unfocused[4]; diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h index 91448ac7..1d8e5a36 100644 --- a/include/sway/tree/container.h +++ b/include/sway/tree/container.h @@ -120,6 +120,8 @@ struct sway_container { float alpha; int corner_radius; + + float dim; struct wlr_texture *title_focused; struct wlr_texture *title_focused_inactive; |