1
0
Fork 0
forked from wry/wry

all: run rustfmt

This commit is contained in:
Julian Orth 2022-07-31 11:55:18 +02:00
parent 9c21d118d6
commit 35dbd483bc
3 changed files with 12 additions and 4 deletions

View file

@ -698,7 +698,8 @@ impl PwClientNode {
if mem_id == !0 {
port.io_buffers.remove(&mix_id);
} else {
port.io_buffers.set(mix_id, self.con.mem.map(mem_id, offset, size)?.typed());
port.io_buffers
.set(mix_id, self.con.mem.map(mem_id, offset, size)?.typed());
}
}
_ => {}

View file

@ -1,7 +1,10 @@
use {
crate::{
ifs::wl_seat::POINTER,
portal::{ptl_render_ctx::PortalRenderCtx, ptr_gui::WindowData, PortalState},
portal::{
ptl_render_ctx::PortalRenderCtx, ptl_screencast::ScreencastSession,
ptr_gui::WindowData, PortalState,
},
render::RenderContext,
utils::{
bitflags::BitflagsExt, clonecell::CloneCell, copyhashmap::CopyHashMap,
@ -41,7 +44,6 @@ use {
},
uapi::{c, AsUstr, OwnedFd},
};
use crate::portal::ptl_screencast::ScreencastSession;
struct PortalDisplayPrelude {
con: Rc<UsrCon>,

View file

@ -158,7 +158,12 @@ impl ButtonOwner for StaticButton {
.set(ScreencastPhase::Starting(starting.clone()));
starting.node.owner.set(Some(starting.clone()));
self.surface.gui.dpy.screencasts.set(
self.surface.gui.screencast_session.session_obj.path().to_owned(),
self.surface
.gui
.screencast_session
.session_obj
.path()
.to_owned(),
self.surface.gui.screencast_session.clone(),
);
}