drm: do not ignore events for inactive devices
This commit is contained in:
parent
49215f6a3d
commit
1a5cc59983
|
@ -389,7 +389,6 @@ impl<A: AsRawFd + 'static> Device for AtomicDrmDevice<A> {
|
|||
for event in events {
|
||||
if let Event::PageFlip(event) = event {
|
||||
trace!(self.logger, "Got a page-flip event for crtc ({:?})", event.crtc);
|
||||
if self.active.load(Ordering::SeqCst) {
|
||||
if self
|
||||
.backends
|
||||
.borrow()
|
||||
|
@ -406,13 +405,6 @@ impl<A: AsRawFd + 'static> Device for AtomicDrmDevice<A> {
|
|||
} else {
|
||||
self.backends.borrow_mut().remove(&event.crtc);
|
||||
}
|
||||
} else {
|
||||
debug!(
|
||||
self.logger,
|
||||
"Device ({:?}) not active. Ignoring PageFlip",
|
||||
self.dev_path()
|
||||
);
|
||||
}
|
||||
} else {
|
||||
trace!(
|
||||
self.logger,
|
||||
|
|
|
@ -306,7 +306,6 @@ impl<A: AsRawFd + 'static> Device for LegacyDrmDevice<A> {
|
|||
Ok(events) => {
|
||||
for event in events {
|
||||
if let Event::PageFlip(event) = event {
|
||||
if self.active.load(Ordering::SeqCst) {
|
||||
if self
|
||||
.backends
|
||||
.borrow()
|
||||
|
@ -323,9 +322,6 @@ impl<A: AsRawFd + 'static> Device for LegacyDrmDevice<A> {
|
|||
} else {
|
||||
self.backends.borrow_mut().remove(&event.crtc);
|
||||
}
|
||||
} else {
|
||||
debug!(self.logger, "Device not active. Ignoring PageFlip");
|
||||
}
|
||||
} else {
|
||||
trace!(self.logger, "Unrelated event");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue