diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/commands.h | 5 | ||||
-rw-r--r-- | include/sway/config.h | 5 | ||||
-rw-r--r-- | include/sway/desktop/fx_renderer.h | 5 |
3 files changed, 10 insertions, 5 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h index 2746ef28..1383295d 100644 --- a/include/sway/commands.h +++ b/include/sway/commands.h @@ -17,9 +17,9 @@ struct cmd_handler { * Indicates the result of a command's execution. */ enum cmd_status { - CMD_SUCCESS, /**< The command was successful */ + CMD_SUCCESS, /**< The command was successful */ CMD_FAILURE, /**< The command resulted in an error */ - CMD_INVALID, /**< Unknown command or parser error */ + CMD_INVALID, /**< Unknown command or parser error */ CMD_DEFER, /**< Command execution deferred */ CMD_BLOCK, CMD_BLOCK_COMMANDS, @@ -118,6 +118,7 @@ sway_cmd cmd_client_urgent; sway_cmd cmd_client_placeholder; sway_cmd cmd_client_background; sway_cmd cmd_commands; +sway_cmd cmd_corner_radius; sway_cmd cmd_create_output; sway_cmd cmd_default_border; sway_cmd cmd_default_floating_border; diff --git a/include/sway/config.h b/include/sway/config.h index fda0e83f..e644003f 100644 --- a/include/sway/config.h +++ b/include/sway/config.h @@ -466,6 +466,9 @@ enum xwayland_mode { * The configuration struct. The result of loading a config file. */ struct sway_config { + // SwayFX config options + int corner_radius; + char *swaynag_command; struct swaynag_instance swaynag_config_errors; list_t *symbols; @@ -708,7 +711,7 @@ void free_workspace_config(struct workspace_config *wsc); /** * Updates the value of config->font_height based on the metrics for title's * font as reported by pango. - * + * * If the height has changed, all containers will be rearranged to take on the * new size. */ diff --git a/include/sway/desktop/fx_renderer.h b/include/sway/desktop/fx_renderer.h index f2ed0cbc..5ed3bc7d 100644 --- a/include/sway/desktop/fx_renderer.h +++ b/include/sway/desktop/fx_renderer.h @@ -8,6 +8,7 @@ struct gles2_tex_shader { GLint proj; GLint tex; GLint alpha; + GLint discardOpaque; GLint pos_attrib; GLint tex_attrib; }; @@ -43,10 +44,10 @@ void fx_renderer_scissor(struct wlr_box *box); bool fx_render_subtexture_with_matrix(struct fx_renderer *renderer, struct wlr_texture *wlr_texture, const struct wlr_fbox *box, - const float matrix[static 9], float alpha); + const float matrix[static 9], float alpha, int radius); bool fx_render_texture_with_matrix(struct fx_renderer *renderer, - struct wlr_texture *wlr_texture, const float matrix[static 9], float alpha); + struct wlr_texture *wlr_texture, const float matrix[static 9], float alpha, int radius); void fx_render_rect(struct fx_renderer *renderer, const struct wlr_box *box, const float color[static 4], const float projection[static 9]); |