Exclude "cosmic-workspace-overview" from workspace screencopy

This commit is contained in:
Ian Douglas Scott 2023-02-10 14:32:56 -08:00
parent 5ba068ec82
commit 26a652f039
4 changed files with 113 additions and 40 deletions

View file

@ -158,6 +158,7 @@ where
cursor_mode,
screencopy,
fps,
false,
);
result
@ -175,6 +176,7 @@ pub fn render_workspace<'frame, R, Target, OffTarget, Source>(
mut cursor_mode: CursorMode,
screencopy: Option<(Source, &[(ScreencopySession, BufferParams)])>,
mut fps: Option<&mut Fps>,
exclude_workspace_overview: bool,
) -> Result<(Option<Vec<Rectangle<i32, Physical>>>, RenderElementStates), RenderError<R>>
where
R: Renderer
@ -254,6 +256,7 @@ where
output,
&state.shell.override_redirect_windows,
state.xwayland_state.values_mut(),
exclude_workspace_overview,
)
.map_err(|_| OutputNoMode)?
.into_iter()