focus: Stop log spamming
This commit is contained in:
parent
464a900e4b
commit
9bd9c5d432
1 changed files with 5 additions and 3 deletions
|
|
@ -241,6 +241,8 @@ impl Common {
|
||||||
} else {
|
} else {
|
||||||
slog_scope::debug!("Surface dead, focus fixup");
|
slog_scope::debug!("Surface dead, focus fixup");
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// fixup focus
|
// fixup focus
|
||||||
|
|
@ -257,13 +259,13 @@ impl Common {
|
||||||
}
|
}
|
||||||
|
|
||||||
// update keyboard focus
|
// update keyboard focus
|
||||||
let surface = dbg!(state
|
let surface = state
|
||||||
.common
|
.common
|
||||||
.shell
|
.shell
|
||||||
.active_space(&output)
|
.active_space(&output)
|
||||||
.focus_stack(&seat)
|
.focus_stack(&seat)
|
||||||
.last())
|
.last()
|
||||||
.map(|w| w.toplevel().wl_surface().clone());
|
.map(|w| w.toplevel().wl_surface().clone());
|
||||||
if let Some(keyboard) = seat.get_keyboard() {
|
if let Some(keyboard) = seat.get_keyboard() {
|
||||||
slog_scope::info!("restoring focus to: {:?}", surface.as_ref());
|
slog_scope::info!("restoring focus to: {:?}", surface.as_ref());
|
||||||
keyboard.set_focus(state, surface.clone(), SERIAL_COUNTER.next_serial());
|
keyboard.set_focus(state, surface.clone(), SERIAL_COUNTER.next_serial());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue