fix wayvr keyboard focus

This commit is contained in:
galister
2025-03-10 02:02:52 +09:00
parent b0883e81bf
commit 59b489680a

View File

@@ -442,13 +442,11 @@ impl Display {
if let Some(window) = wm.windows.get(&window_handle) { if let Some(window) = wm.windows.get(&window_handle) {
let surf = window.toplevel.wl_surface().clone(); let surf = window.toplevel.wl_surface().clone();
if manager.seat_keyboard.current_focus().is_none() { manager.seat_keyboard.set_focus(
manager.seat_keyboard.set_focus( &mut manager.state,
&mut manager.state, Some(surf),
Some(surf), manager.serial_counter.next_serial(),
manager.serial_counter.next_serial(), );
);
}
} }
} }