summaryrefslogtreecommitdiff
path: root/include/sway/tree/workspace.h
diff options
context:
space:
mode:
authorWilliam McKinnon <[email protected]>2023-09-06 00:32:08 -0400
committerGitHub <[email protected]>2023-09-06 00:32:08 -0400
commit6f6991a1b38b03e87fd3f73607ca2393ae62cfea (patch)
treefcb05d87a897f167f57142877aa7e2003d32bf82 /include/sway/tree/workspace.h
parent13eeea5ed5f569eb8a9af329af8a7f6b4b0b114e (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.h3
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);