Skip to content

Commit

Permalink
portal: fix handling of duplicate render devices
Browse files Browse the repository at this point in the history
  • Loading branch information
mahkoh committed Feb 19, 2024
1 parent 0f4804d commit 451d7d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/portal/ptl_display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ impl UsrJayRenderCtxOwner for PortalDisplay {
fn device(&self, fd: Rc<OwnedFd>) {
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;
Expand Down

0 comments on commit 451d7d9

Please sign in to comment.