1
0
Fork 0
forked from wry/wry

cli: add randr subcommand

This commit is contained in:
Julian Orth 2024-03-05 14:17:36 +01:00
parent 5b2bfb8531
commit 20ac21e412
14 changed files with 1053 additions and 17 deletions

View file

@ -994,6 +994,10 @@ impl BackendDrmDevice for XDrmDevice {
fn set_direct_scanout_enabled(&self, enabled: bool) {
let _ = enabled;
}
fn is_render_device(&self) -> bool {
true
}
}
struct XOutput {
@ -1055,10 +1059,6 @@ impl Connector for XOutput {
Some(self.backend.drm_device_id)
}
fn set_enabled(&self, _enabled: bool) {
// nothing
}
fn set_mode(&self, _mode: Mode) {
log::warn!("X backend doesn't support changing the connector mode");
}