mirror of https://github.com/wayvr-org/wayvr.git
fix wayvr keyboard focus
This commit is contained in:
parent
b0883e81bf
commit
59b489680a
|
|
@ -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(),
|
);
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue