diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2023-04-25 15:36:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-25 15:36:26 +0200 |
commit | 6aac8af6f1153755b850babdc52bd58956eeec18 (patch) | |
tree | b922c7caee9400006303bcb6248d395d590e64da /scene/main/window.cpp | |
parent | aa622dae535160a3cf6c402db98b6824d2e3b790 (diff) | |
parent | 5bb66d3cfbb6d73486df68eea3c0a63b1f596cbe (diff) | |
download | redot-engine-6aac8af6f1153755b850babdc52bd58956eeec18.tar.gz |
Merge pull request #69318 from Sauermann/fix-refresh-gui-events
Fix scene reload crash related to mouse cursor update
Diffstat (limited to 'scene/main/window.cpp')
-rw-r--r-- | scene/main/window.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/main/window.cpp b/scene/main/window.cpp index d16a12fcff..3d11e6647e 100644 --- a/scene/main/window.cpp +++ b/scene/main/window.cpp @@ -1377,7 +1377,9 @@ void Window::_window_input(const Ref<InputEvent> &p_ev) { } } - emit_signal(SceneStringNames::get_singleton()->window_input, p_ev); + if (p_ev->get_device() != InputEvent::DEVICE_ID_INTERNAL) { + emit_signal(SceneStringNames::get_singleton()->window_input, p_ev); + } if (is_inside_tree()) { push_input(p_ev); |