it: test window gains kb focus when mapped
This commit is contained in:
parent
cbf539cbcc
commit
c827a93dbb
19 changed files with 672 additions and 39 deletions
|
|
@ -1,5 +1,8 @@
|
|||
use {
|
||||
crate::{ifs::wl_seat::SeatId, it::test_error::TestError, utils::stack::Stack},
|
||||
crate::{
|
||||
backend::InputDeviceId, ifs::wl_seat::SeatId, it::test_error::TestError,
|
||||
utils::stack::Stack,
|
||||
},
|
||||
isnt::std_1::primitive::IsntConstPtrExt,
|
||||
jay_config::{
|
||||
_private::{
|
||||
|
|
@ -7,7 +10,7 @@ use {
|
|||
ipc::{ClientMessage, Response, ServerMessage},
|
||||
ConfigEntry, VERSION,
|
||||
},
|
||||
input::Seat,
|
||||
input::{InputDevice, Seat},
|
||||
},
|
||||
std::{cell::Cell, ops::Deref, ptr, rc::Rc},
|
||||
};
|
||||
|
|
@ -161,6 +164,13 @@ impl TestConfig {
|
|||
})
|
||||
}
|
||||
|
||||
pub fn set_input_device_seat(&self, id: InputDeviceId, seat: SeatId) -> Result<(), TestError> {
|
||||
self.send(ClientMessage::SetSeat {
|
||||
device: InputDevice(id.raw() as _),
|
||||
seat: Seat(seat.raw() as _),
|
||||
})
|
||||
}
|
||||
|
||||
fn clear(&self) {
|
||||
unsafe {
|
||||
if let Some(srv) = self.srv.take() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue