Skip to content

Commit

Permalink
chore: just refresh that target window
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Oct 20, 2024
1 parent 1750e76 commit 7cfd61b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions iced_layershell/src/multi_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ async fn run_instance<A, E, C>(
while let Some(event) = event_receiver.next().await {
match event {
MultiWindowIcedLayerEvent(
_id,
id,
IcedLayerEvent::RequestRefreshWithWrapper {
width,
height,
Expand All @@ -516,6 +516,7 @@ async fn run_instance<A, E, C>(
info,
},
) => {
let layerid = id.expect("should make sure here be some");
let mut is_new_window = false;
let (id, window) = if window_manager.get_mut_alias(wrapper.id()).is_none() {
is_new_window = true;
Expand Down Expand Up @@ -639,7 +640,7 @@ async fn run_instance<A, E, C>(
"Error {error:?} when \
presenting surface."
);
custom_actions.push(LayerShellAction::RedrawAll);
custom_actions.push(LayerShellAction::RedrawWindow(layerid));
}
},
}
Expand Down

0 comments on commit 7cfd61b

Please sign in to comment.