diff --git a/wlroots/ffi_build.py b/wlroots/ffi_build.py index fd2fd7b6..f0d9b15d 100644 --- a/wlroots/ffi_build.py +++ b/wlroots/ffi_build.py @@ -1891,6 +1891,9 @@ def has_xwayland() -> bool: void wlr_scene_buffer_set_transform(struct wlr_scene_buffer *scene_buffer, enum wl_output_transform transform); +void wlr_scene_buffer_set_opacity(struct wlr_scene_buffer *scene_buffer, + float opacity); + void wlr_scene_buffer_set_corner_radius(struct wlr_scene_buffer *scene_buffer, int radii); diff --git a/wlroots/wlr_types/scene.py b/wlroots/wlr_types/scene.py index 50e081eb..78eefa9a 100644 --- a/wlroots/wlr_types/scene.py +++ b/wlroots/wlr_types/scene.py @@ -186,6 +186,9 @@ def set_buffer_with_damage( def set_corner_radius(self, radii: int) -> None: lib.wlr_scene_buffer_set_corner_radius(self._ptr, radii) + def set_opacity(self, opacity: float) -> None: + lib.wlr_scene_buffer_set_opacity(self._ptr, opacity) + T = TypeVar("T") BufferCallback = Callable[[SceneBuffer, int, int, T], None]