From 74dd493e3d7ea724b18470dc00e01893b8652112 Mon Sep 17 00:00:00 2001 From: ShootingStarDragons Date: Mon, 5 Aug 2024 23:12:24 +0859 Subject: [PATCH] chore: do fmt --- iced_layershell/src/multi_window.rs | 12 ++++++------ layershellev/src/lib.rs | 12 ++++++++---- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/iced_layershell/src/multi_window.rs b/iced_layershell/src/multi_window.rs index 26b86a2..df3a9e2 100644 --- a/iced_layershell/src/multi_window.rs +++ b/iced_layershell/src/multi_window.rs @@ -892,12 +892,12 @@ pub(crate) fn run_command( if let Some(action) = custom.downcast_ref::>() { - let option_id = if let LayershellCustomActionsWithInfo::RemoveLayerShell(id) = action.1 - { - window_manager.get_iced_id(id) - } else { - None - }; + let option_id = + if let LayershellCustomActionsWithInfo::RemoveLayerShell(id) = action.1 { + window_manager.get_iced_id(id) + } else { + None + }; if let Some(id) = window_manager.get_iced_id(action.0) { customactions.push(LayershellCustomActionsWithIdInner( id, diff --git a/layershellev/src/lib.rs b/layershellev/src/lib.rs index a79ec3f..deaeac2 100644 --- a/layershellev/src/lib.rs +++ b/layershellev/src/lib.rs @@ -765,7 +765,9 @@ impl Dispatch Dispatch for WindowState { +impl Dispatch + for WindowState +{ fn event( state: &mut Self, seat: &wl_seat::WlSeat, @@ -1146,7 +1148,9 @@ impl Dispatch for Windo } } -impl Dispatch for WindowState { +impl Dispatch + for WindowState +{ fn event( state: &mut Self, proxy: &wp_fractional_scale_v1::WpFractionalScaleV1, @@ -1173,12 +1177,12 @@ impl Dispatch WindowState: ignore WlCompositor); // WlCompositor is need to create a surface delegate_noop!(@ WindowState: ignore WlSurface); // surface is the base needed to show buffer delegate_noop!(@ WindowState: ignore WlOutput); // output is need to place layer_shell, although here - // it is not used + // it is not used delegate_noop!(@ WindowState: ignore WlShm); // shm is used to create buffer pool delegate_noop!(@ WindowState: ignore WlShmPool); // so it is pool, created by wl_shm delegate_noop!(@ WindowState: ignore WlBuffer); // buffer show the picture delegate_noop!(@ WindowState: ignore ZwlrLayerShellV1); // it is similar with xdg_toplevel, also the - // ext-session-shell + // ext-session-shell delegate_noop!(@ WindowState: ignore WpCursorShapeManagerV1); delegate_noop!(@ WindowState: ignore WpCursorShapeDeviceV1);