diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-02-19 09:07:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-19 09:07:07 +0100 |
commit | 417698c2023397f801951358565c6016fd6202f4 (patch) | |
tree | 9b749047304f1a26f0efacba0dd803e18cc83118 /scene/main/window.cpp | |
parent | 8aed7c1c09e7f6fa902d607d86cc8f6688bf3fb5 (diff) | |
parent | 415042ac89d1c9c7f8ca97fa83fc1165350a01da (diff) |
Merge pull request #58042 from Sauermann/fix-viewport-border-notifications
Fix Viewport mouse enter+exit notifications
Diffstat (limited to 'scene/main/window.cpp')
-rw-r--r-- | scene/main/window.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/main/window.cpp b/scene/main/window.cpp index e7a575f40a..0ce556d36c 100644 --- a/scene/main/window.cpp +++ b/scene/main/window.cpp @@ -340,9 +340,11 @@ void Window::_event_callback(DisplayServer::WindowEvent p_event) { case DisplayServer::WINDOW_EVENT_MOUSE_ENTER: { _propagate_window_notification(this, NOTIFICATION_WM_MOUSE_ENTER); emit_signal(SNAME("mouse_entered")); + notification(NOTIFICATION_VP_MOUSE_ENTER); DisplayServer::get_singleton()->cursor_set_shape(DisplayServer::CURSOR_ARROW); //restore cursor shape } break; case DisplayServer::WINDOW_EVENT_MOUSE_EXIT: { + notification(NOTIFICATION_VP_MOUSE_EXIT); _propagate_window_notification(this, NOTIFICATION_WM_MOUSE_EXIT); emit_signal(SNAME("mouse_exited")); } break; |