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
This commit is contained in:
famfo 2023-02-15 01:19:02 +00:00 committed by GitHub
parent e78fc3364b
commit 9f20a52638
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 58 additions and 17 deletions

View file

@ -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;

View file

@ -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];

View file

@ -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;