1
0
Fork 0
forked from wry/wry

tree: focus container mono child after scroll

This commit is contained in:
Julian Orth 2022-05-07 14:24:06 +02:00
parent 3abd72b330
commit fca7c7e1d2
9 changed files with 140 additions and 9 deletions

View file

@ -14,7 +14,7 @@ use {
},
input::{InputDevice, Seat},
keyboard::{keymap::Keymap, ModifiedKeySym},
Direction,
Axis, Direction,
},
std::{cell::Cell, ops::Deref, ptr, rc::Rc},
};
@ -191,6 +191,20 @@ impl TestConfig {
})
}
pub fn create_split(&self, seat: SeatId, axis: Axis) -> TestResult {
self.send(ClientMessage::CreateSplit {
seat: Seat(seat.raw() as _),
axis,
})
}
pub fn set_mono(&self, seat: SeatId, mono: bool) -> TestResult {
self.send(ClientMessage::SetMono {
seat: Seat(seat.raw() as _),
mono,
})
}
pub fn add_shortcut<T: Into<ModifiedKeySym>>(
&self,
seat: SeatId,