Fix window drop on Wayland
In some scenarious of window dropping the callback for keyboard may run after the window was dropped.
This commit is contained in:
parent
1eb1a13a77
commit
7029ce6ecd
3 changed files with 13 additions and 8 deletions
|
|
@ -45,9 +45,6 @@ pub(super) fn handle_pointer(
|
|||
pointer_data.latest_enter_serial.replace(serial);
|
||||
|
||||
let window_id = wayland::make_wid(&surface);
|
||||
if !winit_state.window_map.contains_key(&window_id) {
|
||||
return;
|
||||
}
|
||||
let window_handle = match winit_state.window_map.get_mut(&window_id) {
|
||||
Some(window_handle) => window_handle,
|
||||
None => return,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue