1
0
Fork 0
forked from wry/wry

config: add Seat::show_workspace_on

This commit is contained in:
Julian Orth 2025-10-07 05:02:07 +02:00
parent d2ce140f54
commit d320d2f3c1
12 changed files with 131 additions and 13 deletions

View file

@ -906,11 +906,16 @@ impl State {
}
}
pub fn show_workspace(&self, seat: &Rc<WlSeatGlobal>, name: &str) {
pub fn show_workspace(
&self,
seat: &Rc<WlSeatGlobal>,
name: &str,
output: Option<Rc<OutputNode>>,
) {
let ws = match self.workspaces.get(name) {
Some(ws) => ws,
_ => {
let output = seat.get_output();
let output = output.unwrap_or_else(|| seat.get_output());
if output.is_dummy {
log::warn!("Not showing workspace because seat is on dummy output");
return;