Skip to content

Commit

Permalink
Merge pull request #1174 from ids1024/drm-extras
Browse files Browse the repository at this point in the history
Fix build of `smithay-drm-extras` example
  • Loading branch information
Drakulix authored Oct 21, 2023
2 parents 988c94d + 6e95a75 commit 1e65789
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions smithay-drm-extras/examples/simple.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{collections::HashMap, os::unix::io::FromRawFd, path::PathBuf, time::Duration};
use std::{collections::HashMap, path::PathBuf, time::Duration};

use ::drm::control::{connector, crtc};
use smithay_drm_extras::{
Expand All @@ -14,7 +14,7 @@ use smithay::{
},
reexports::{
calloop::{timer::Timer, EventLoop, LoopHandle},
nix::fcntl::OFlag,
rustix::fs::OFlags,
},
utils::DeviceFd,
};
Expand Down Expand Up @@ -104,11 +104,11 @@ impl State {
.session
.open(
&path,
OFlag::O_RDWR | OFlag::O_CLOEXEC | OFlag::O_NOCTTY | OFlag::O_NONBLOCK,
OFlags::RDWR | OFlags::CLOEXEC | OFlags::NOCTTY | OFlags::NONBLOCK,
)
.unwrap();

let fd = DrmDeviceFd::new(unsafe { DeviceFd::from_raw_fd(fd) });
let fd = DrmDeviceFd::new(DeviceFd::from(fd));

let (drm, drm_notifier) = drm::DrmDevice::new(fd, false).unwrap();

Expand Down

0 comments on commit 1e65789

Please sign in to comment.