Skip to content

Commit

Permalink
Merge pull request #98 from mahkoh/jorth/portal-dev
Browse files Browse the repository at this point in the history
portal: fix handling of duplicate render devices
  • Loading branch information
mahkoh authored Feb 19, 2024
2 parents 0f4804d + 451d7d9 commit 1ac4f3d
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 1ac4f3d

Please sign in to comment.