Reverse legacy check order
This commit is contained in:
parent
5d6fadcea8
commit
62fcd84226
|
@ -184,7 +184,7 @@ impl<A: AsRawFd + 'static> DrmDevice<A> {
|
|||
};
|
||||
|
||||
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)?)
|
||||
} else {
|
||||
info!(log, "Falling back to LegacyDrmDevice");
|
||||
|
|
Loading…
Reference in New Issue