summaryrefslogtreecommitdiffstats
path: root/scene/main/window.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2023-04-25 15:36:26 +0200
committerGitHub <noreply@github.com>2023-04-25 15:36:26 +0200
commit6aac8af6f1153755b850babdc52bd58956eeec18 (patch)
treeb922c7caee9400006303bcb6248d395d590e64da /scene/main/window.cpp
parentaa622dae535160a3cf6c402db98b6824d2e3b790 (diff)
parent5bb66d3cfbb6d73486df68eea3c0a63b1f596cbe (diff)
downloadredot-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.cpp4
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);