Fixes for rendering windows in Global workspace mode

* Render window and active indicator at correct position relative to
  where the output is within the space.
* Show active indicator around whole window, not only part of window on
  focused output.
This commit is contained in:
Ian Douglas Scott 2023-03-10 16:20:17 -08:00
parent 8a188cb39e
commit 3804c67557
3 changed files with 11 additions and 4 deletions

View file

@ -290,7 +290,8 @@ where
.unwrap()
.borrow()
.is_some();
let active_output = &last_active_seat.active_output() == output;
let active_output = last_active_seat.active_output();
let is_active_space = workspace.outputs().any(|o| o == &active_output);
elements.extend(
workspace
@ -299,7 +300,7 @@ where
output,
&state.shell.override_redirect_windows,
state.xwayland_state.as_mut(),
(!move_active && active_output).then_some(&last_active_seat),
(!move_active && is_active_space).then_some(&last_active_seat),
state.config.static_conf.active_hint,
exclude_workspace_overview,
)