Skip to content

Commit 3935de0

Browse files
committed
kms: evdi cursor work around
1 parent b7fd4bc commit 3935de0

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/backend/kms/mod.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ impl<'a> KmsGuard<'a> {
834834
let driver = drm.device().get_driver().ok();
835835

836836
// QUIRK: Using an overlay plane on a nvidia card breaks the display controller (wtf...)
837-
if driver.is_some_and(|driver| {
837+
if driver.as_ref().is_some_and(|driver| {
838838
driver
839839
.name()
840840
.to_string_lossy()
@@ -843,6 +843,17 @@ impl<'a> KmsGuard<'a> {
843843
}) {
844844
planes.overlay = vec![];
845845
}
846+
// QUIRK: Cursor planes on evdi sometimes don't disappear correctly.
847+
// TODO: Debug and figure out, as they can be a nice improvement.
848+
if driver.as_ref().is_some_and(|driver| {
849+
driver
850+
.name()
851+
.to_string_lossy()
852+
.to_lowercase()
853+
.contains("evdi")
854+
}) {
855+
planes.cursor = vec![];
856+
}
846857

847858
let mut renderer = self
848859
.api

0 commit comments

Comments
 (0)