config: add Seat::show_workspace_on
This commit is contained in:
parent
d2ce140f54
commit
d320d2f3c1
12 changed files with 131 additions and 13 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue