it: test output transforms
This commit is contained in:
parent
c6b34550d8
commit
221a398abe
6 changed files with 49 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ use {
|
|||
},
|
||||
input::{InputDevice, Seat},
|
||||
keyboard::{Keymap, ModifiedKeySym},
|
||||
video::Connector,
|
||||
video::{Connector, Transform},
|
||||
Axis, Direction,
|
||||
},
|
||||
std::{cell::Cell, ops::Deref, ptr, rc::Rc},
|
||||
|
|
@ -260,6 +260,13 @@ impl TestConfig {
|
|||
scale,
|
||||
})
|
||||
}
|
||||
|
||||
pub fn set_output_transform(&self, output: &OutputNode, transform: Transform) -> TestResult {
|
||||
self.send(ClientMessage::ConnectorSetTransform {
|
||||
connector: Connector(output.global.connector.connector.id().raw() as _),
|
||||
transform,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for TestConfig {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue