diff options
author | Erik Reider <[email protected]> | 2022-12-07 06:10:11 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-12-07 00:10:11 -0500 |
commit | 988fb247107c469bb98ce3088ad189fa12db7cdd (patch) | |
tree | 67eafa3aef85ccb450adb3a46ed313c4ae32db6d /include | |
parent | e82e4de37f5c6fe184da62f228329a37517ccd55 (diff) |
[Feature] Dim inactive windows (#66)
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/commands.h | 3 | ||||
-rw-r--r-- | include/sway/config.h | 6 | ||||
-rw-r--r-- | include/sway/desktop/fx_renderer.h | 4 |
3 files changed, 13 insertions, 0 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h index 6f39c0c8..86856fcf 100644 --- a/include/sway/commands.h +++ b/include/sway/commands.h @@ -123,6 +123,9 @@ sway_cmd cmd_create_output; sway_cmd cmd_default_border; sway_cmd cmd_default_floating_border; sway_cmd cmd_default_orientation; +sway_cmd cmd_dim_inactive; +sway_cmd cmd_dim_inactive_colors_unfocused; +sway_cmd cmd_dim_inactive_colors_urgent; sway_cmd cmd_exec; sway_cmd cmd_exec_always; sway_cmd cmd_exit; diff --git a/include/sway/config.h b/include/sway/config.h index e644003f..4ec035c2 100644 --- a/include/sway/config.h +++ b/include/sway/config.h @@ -468,6 +468,12 @@ enum xwayland_mode { struct sway_config { // SwayFX config options int corner_radius; + float dim_inactive; + // dim_inactive colors + struct { + float unfocused[4]; + float urgent[4]; + } dim_inactive_colors; char *swaynag_command; struct swaynag_instance swaynag_config_errors; diff --git a/include/sway/desktop/fx_renderer.h b/include/sway/desktop/fx_renderer.h index 05b4458d..c5bae260 100644 --- a/include/sway/desktop/fx_renderer.h +++ b/include/sway/desktop/fx_renderer.h @@ -11,6 +11,8 @@ struct decoration_data { float alpha; float saturation; int corner_radius; + float dim; + float* dim_color; bool has_titlebar; }; @@ -25,6 +27,8 @@ struct gles2_tex_shader { GLint position; GLint radius; GLint saturation; + GLint dim; + GLint dim_color; GLint has_titlebar; }; |