Reverse legacy check order

This commit is contained in:
Victor Brekenfeld 2021-05-15 23:38:24 +02:00
parent 5d6fadcea8
commit 62fcd84226
1 changed files with 1 additions and 1 deletions

View File

@ -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");