Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Aug 5, 2024
1 parent d6cf627 commit bd8c467
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions iced_layershell/src/multi_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ where
}
let poll = instance.as_mut().poll(&mut context);
match poll {
task::Poll::Pending => 'peddingBlock: {
task::Poll::Pending => {
if let Ok(Some(flow)) = control_receiver.try_next() {
for flow in flow {
match flow {
Expand Down Expand Up @@ -318,20 +318,20 @@ where

LayerShellActions::Mouse(mouse) => {
let Some(pointer) = ev.get_pointer() else {
break 'peddingBlock ReturnData::None;
return ReturnData::None;
};

break 'peddingBlock ReturnData::RequestSetCursorShape((
return ReturnData::RequestSetCursorShape((
conversion::mouse_interaction(mouse),
pointer.clone(),
pointer_serial,
));
}
LayerShellActions::RedrawAll => {
break 'peddingBlock ReturnData::RedrawAllRequest;
return ReturnData::RedrawAllRequest;
}
LayerShellActions::RedrawWindow(index) => {
break 'peddingBlock ReturnData::RedrawIndexRequest(index);
return ReturnData::RedrawIndexRequest(index);
}
_ => {}
}
Expand Down

0 comments on commit bd8c467

Please sign in to comment.