xwm: More fixes

This commit is contained in:
Victoria Brekenfeld 2023-01-23 18:25:01 +01:00
parent 1d28574088
commit 9b1221edc5
14 changed files with 311 additions and 80 deletions

View file

@ -157,7 +157,7 @@ where
Source: Clone,
{
let handle = state.shell.workspaces.active(output).handle;
render_workspace(
let result = render_workspace(
gpu,
renderer,
target,
@ -169,7 +169,27 @@ where
cursor_mode,
screencopy,
fps,
)
);
/*
if let Ok((_, states)) = result.as_ref() {
for xwm in state
.xwayland_state
.values_mut()
.flat_map(|state| state.xwm.as_mut())
{
if let Err(err) = xwm.update_stacking_order_upwards(states.states.keys()) {
slog_scope::warn!(
"Failed to update Xwm ({:?}) stacking order: {}",
xwm.id(),
err
);
}
}
}
*/
result
}
pub fn render_workspace<'frame, R, Target, OffTarget, Source>(
@ -258,7 +278,7 @@ where
elements.extend(
workspace
.render_output::<R>(renderer, output)
.render_output::<R>(renderer, output, &state.shell.override_redirect_windows)
.map_err(|_| OutputNoMode)?
.into_iter()
.map(Into::into),