diff options
author | William McKinnon <[email protected]> | 2023-05-16 02:26:01 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2023-05-16 02:26:01 -0400 |
commit | 2c4fe20456851b6b8dc14b6bdc0cf9bee527a9ee (patch) | |
tree | c9e8a650da8a23c849516a6ac54dd59527681693 /include | |
parent | 479cc4e7456a93aed1a89bef8d83c1f8c43bd291 (diff) |
Blur damage tracking simplification (#155)
* suplified conditional in find_con_effect_iterator
* removed has_blur
* simplified optimized blur check
* moved damage expansion to output.c
* removed extraneous fx_renderer_scissor
* cleaned up render_output
* removed unneeded damage scale
* moved workspace optimized check function to workspace.c
* renamed ws iterator function
* added back region expansion
* removed uneeded parameter from get_main_buffer_blur
* returned extended damage
* moved get_blur_size back to original spot (reduce diff size)
* Fixed blur artifacting
* Fixed damage highlight not clearing correct framebuffer
* removed unneeded conditional
* moved initial damage expansion to output.c
* moved extended damage to the top of output_render
* moved blur damage to damage_surface_iterator
* ensure damage doesnt expand beyond output size
* removed stdint import
---------
Co-authored-by: Erik Reider <[email protected]>
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/config.h | 4 | ||||
-rw-r--r-- | include/sway/tree/workspace.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/sway/config.h b/include/sway/config.h index cabc9cf5..d84eef69 100644 --- a/include/sway/config.h +++ b/include/sway/config.h @@ -761,6 +761,10 @@ void translate_keysyms(struct input_config *input_config); void binding_add_translated(struct sway_binding *binding, list_t *bindings); +int config_get_blur_size(); + +bool config_should_parameters_blur(); + /* Global config singleton. */ extern struct sway_config *config; diff --git a/include/sway/tree/workspace.h b/include/sway/tree/workspace.h index b3d93a81..2ff51ea3 100644 --- a/include/sway/tree/workspace.h +++ b/include/sway/tree/workspace.h @@ -92,6 +92,8 @@ struct sway_output *workspace_output_get_highest_available( void workspace_detect_urgent(struct sway_workspace *workspace); +bool should_workspace_have_blur(struct sway_workspace *ws); + void workspace_for_each_container(struct sway_workspace *ws, void (*f)(struct sway_container *con, void *data), void *data); |