fix wayvr keyboard focus
This commit is contained in:
@@ -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(),
|
);
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user