Skip to content

Commit

Permalink
chore: do fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Aug 5, 2024
1 parent 550f282 commit 74dd493
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
12 changes: 6 additions & 6 deletions iced_layershell/src/multi_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -892,12 +892,12 @@ pub(crate) fn run_command<A, C, E>(
if let Some(action) =
custom.downcast_ref::<LayershellCustomActionsWithIdAndInfo<A::WindowInfo>>()
{
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,
Expand Down
12 changes: 8 additions & 4 deletions layershellev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,9 @@ impl<T: Debug + 'static, INFO: 'static + Clone> Dispatch<wl_registry::WlRegistry
}
}

impl<T: Debug + 'static, INFO: 'static + Clone> Dispatch<wl_seat::WlSeat, ()> for WindowState<T, INFO> {
impl<T: Debug + 'static, INFO: 'static + Clone> Dispatch<wl_seat::WlSeat, ()>
for WindowState<T, INFO>
{
fn event(
state: &mut Self,
seat: &wl_seat::WlSeat,
Expand Down Expand Up @@ -1146,7 +1148,9 @@ impl<T: Debug, INFO: Clone> Dispatch<zxdg_output_v1::ZxdgOutputV1, ()> for Windo
}
}

impl<T: Debug, INFO: Clone> Dispatch<wp_fractional_scale_v1::WpFractionalScaleV1, ()> for WindowState<T, INFO> {
impl<T: Debug, INFO: Clone> Dispatch<wp_fractional_scale_v1::WpFractionalScaleV1, ()>
for WindowState<T, INFO>
{
fn event(
state: &mut Self,
proxy: &wp_fractional_scale_v1::WpFractionalScaleV1,
Expand All @@ -1173,12 +1177,12 @@ impl<T: Debug, INFO: Clone> Dispatch<wp_fractional_scale_v1::WpFractionalScaleV1
delegate_noop!(@<T: Debug, INFO: Clone> WindowState<T, INFO>: ignore WlCompositor); // WlCompositor is need to create a surface
delegate_noop!(@<T: Debug, INFO: Clone> WindowState<T, INFO>: ignore WlSurface); // surface is the base needed to show buffer
delegate_noop!(@<T: Debug, INFO: Clone> WindowState<T, INFO>: ignore WlOutput); // output is need to place layer_shell, although here
// it is not used
// it is not used
delegate_noop!(@<T: Debug, INFO: Clone> WindowState<T, INFO>: ignore WlShm); // shm is used to create buffer pool
delegate_noop!(@<T: Debug, INFO: Clone> WindowState<T, INFO>: ignore WlShmPool); // so it is pool, created by wl_shm
delegate_noop!(@<T: Debug, INFO: Clone> WindowState<T, INFO>: ignore WlBuffer); // buffer show the picture
delegate_noop!(@<T: Debug, INFO: Clone> WindowState<T, INFO>: ignore ZwlrLayerShellV1); // it is similar with xdg_toplevel, also the
// ext-session-shell
// ext-session-shell

delegate_noop!(@<T: Debug, INFO: Clone> WindowState<T, INFO>: ignore WpCursorShapeManagerV1);
delegate_noop!(@<T: Debug, INFO: Clone> WindowState<T, INFO>: ignore WpCursorShapeDeviceV1);
Expand Down

0 comments on commit 74dd493

Please sign in to comment.