Fix later-attached wry event handlers not getting called (#3908)
This commit is contained in:
1 parent
6bdb69e235
commit
dc0f0dbd2c
1 file changed
+1
-1
@@ -56,7 +56,7 @@ impl WindowEventHandlers {
|
||||
// if this event does not apply to the window this listener cares about, return
|
||||
if let Event::WindowEvent { window_id, .. } = event {
|
||||
if *window_id != handler.window_id {
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
(handler.handler)(event, target)
|
||||
|
||||
Reference in new issue
Block a user