diff options
author | William McKinnon <[email protected]> | 2023-09-06 00:32:08 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2023-09-06 00:32:08 -0400 |
commit | 6f6991a1b38b03e87fd3f73607ca2393ae62cfea (patch) | |
tree | fcb05d87a897f167f57142877aa7e2003d32bf82 /include/sway/tree/workspace.h | |
parent | 13eeea5ed5f569eb8a9af329af8a7f6b4b0b114e (diff) |
refactor: simplify blur (#219)
* refactor: removed surface_width + surface_height from render_blur()
* Fixed scaling issues
* Minor refactors
* removed scaled_dst box
* removed uneeded fb bind
* removed unneeded src_box
* removed unneeded wlr_fbox_from_box function
* removed src_box
* Don't scale the blur translucent region twice
* Renamed extended_damage to original_damage to reflect better what it actually is
* Removed unneeded clearing of the wlr fbo before rendering onto it
* Removed the need for our own main FBO, also fixes some damage bugs
* Simplified detection of blur on workspace
* cleaned up comments
---------
Co-authored-by: Erik Reider <[email protected]>
Diffstat (limited to 'include/sway/tree/workspace.h')
-rw-r--r-- | include/sway/tree/workspace.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sway/tree/workspace.h b/include/sway/tree/workspace.h index 2ff51ea3..d25afbb2 100644 --- a/include/sway/tree/workspace.h +++ b/include/sway/tree/workspace.h @@ -92,7 +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); +bool workspace_get_blur_info(struct sway_workspace *ws, + pixman_region32_t *blur_region); void workspace_for_each_container(struct sway_workspace *ws, void (*f)(struct sway_container *con, void *data), void *data); |