1
0
Fork 0
forked from wry/wry

portal: add a desktop portal

This commit is contained in:
Julian Orth 2022-07-30 19:21:30 +02:00
parent 323a6ed953
commit a162055f1d
38 changed files with 2389 additions and 27 deletions

View file

@ -140,8 +140,8 @@ pub struct Drm {
impl Drm {
#[cfg_attr(not(feature = "it"), allow(dead_code))]
pub fn open_existing(fd: OwnedFd) -> Self {
Self { fd: Rc::new(fd) }
pub fn open_existing(fd: Rc<OwnedFd>) -> Self {
Self { fd }
}
pub fn reopen(fd: c::c_int, need_primary: bool) -> Result<Self, DrmError> {