From 451d7d9ef149e41bb3ea75e78a117081a209f0f1 Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Mon, 19 Feb 2024 11:02:50 +0100 Subject: [PATCH] portal: fix handling of duplicate render devices --- src/portal/ptl_display.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/portal/ptl_display.rs b/src/portal/ptl_display.rs index 17946f26..7c16b11d 100644 --- a/src/portal/ptl_display.rs +++ b/src/portal/ptl_display.rs @@ -157,7 +157,7 @@ impl UsrJayRenderCtxOwner for PortalDisplay { fn device(&self, fd: Rc) { self.render_ctx.take(); let dev_id = match uapi::fstat(fd.raw()) { - Ok(s) => s.st_dev, + Ok(s) => s.st_rdev, Err(e) => { log::error!("Could not fstat display device: {}", ErrorFmt(e)); return;