Reverse legacy check order
This commit is contained in:
parent
5d6fadcea8
commit
62fcd84226
|
@ -184,7 +184,7 @@ impl<A: AsRawFd + 'static> DrmDevice<A> {
|
||||||
};
|
};
|
||||||
|
|
||||||
Ok(
|
Ok(
|
||||||
if dev.set_client_capability(ClientCapability::Atomic, true).is_ok() && !force_legacy {
|
if !force_legacy && dev.set_client_capability(ClientCapability::Atomic, true).is_ok() {
|
||||||
DrmDeviceInternal::Atomic(AtomicDrmDevice::new(dev, active, disable_connectors, log)?)
|
DrmDeviceInternal::Atomic(AtomicDrmDevice::new(dev, active, disable_connectors, log)?)
|
||||||
} else {
|
} else {
|
||||||
info!(log, "Falling back to LegacyDrmDevice");
|
info!(log, "Falling back to LegacyDrmDevice");
|
||||||
|
|
Loading…
Reference in New Issue