First working version with all options except grace
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user