aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-10-16 11:43:33 +0000
committerDaniel Eklöf <daniel@ekloef.se>2026-03-02 08:39:09 +0000
commitdea10e2e48162c6ab48ca564ceeca88dea886a04 (patch)
tree04f41254ed11545b45565ae413e6839006490d71 /wayland.h
parentSpawning new terminal with --config from parent instance (diff)
Add support for background blur
This patch adds a new config option: colors{,2}.blur=no|yes. When enabled, transparent background are also blurred. Note that this requires the brand new ext-background-effect-v1 protocol, and specifically, that the compositor implements the blur effect.
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/wayland.h b/wayland.h
index 6247875a..9cbd1023 100644
--- a/wayland.h
+++ b/wayland.h
@@ -26,6 +26,9 @@
#if defined(HAVE_XDG_TOPLEVEL_TAG)
#include <xdg-toplevel-tag-v1.h>
#endif
+#if defined(HAVE_EXT_BACKGROUND_EFFECT)
+ #include <ext-background-effect-v1.h>
+#endif
#include <fcft/fcft.h>
#include <tllist.h>
@@ -62,6 +65,10 @@ struct wayl_surface {
struct wl_surface *surf;
struct wp_viewport *viewport;
struct wp_color_management_surface_v1 *color_management;
+
+#if defined(HAVE_EXT_BACKGROUND_EFFECT)
+ struct ext_background_effect_surface_v1 *background_effect;
+#endif
};
struct wayl_sub_surface {
@@ -490,6 +497,10 @@ struct wayland {
#if defined(HAVE_XDG_TOPLEVEL_TAG)
struct xdg_toplevel_tag_manager_v1 *toplevel_tag_manager;
#endif
+#if defined(HAVE_EXT_BACKGROUND_EFFECT)
+ struct ext_background_effect_manager_v1 *background_effect_manager;
+ bool have_background_blur;
+#endif
#if defined(FOOT_IME_ENABLED) && FOOT_IME_ENABLED
struct zwp_text_input_manager_v3 *text_input_manager;