First working version with all options except grace

This commit is contained in:
2026-03-07 21:48:24 +01:00
parent 7cdcf19415
commit 88f7833d8d
10 changed files with 712 additions and 1663 deletions
-10
View File
@@ -28,11 +28,6 @@ impl Screenshot {
Self { surface }
}
/// Get a reference to the underlying surface.
pub fn surface(&self) -> &ImageSurface {
&self.surface
}
/// Consume the screenshot and return the underlying Cairo surface.
pub fn into_inner(self) -> ImageSurface {
self.surface
@@ -171,11 +166,6 @@ impl ScreenshotManager {
Ok(Self { manager })
}
/// Returns `true` if the wlr-screencopy protocol is available.
pub fn is_available(&self) -> bool {
self.manager.is_some()
}
/// Initiate a screencopy operation for the given output.
///
/// This method sends a screencopy request and returns the frame object.