summaryrefslogtreecommitdiffstats
path: root/scene/main/window.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-08-16 09:12:42 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-08-16 09:12:42 +0200
commita7dc4c22a927eb27c81619720548fe2a9516c193 (patch)
tree837e13601701f90eba516d164fb282734e9809b0 /scene/main/window.h
parent132b97c325f8b708cab73e544c4b9da3d01271d8 (diff)
parent59c13fea5da195fe550f95b247bf2b84daf05b1a (diff)
downloadredot-engine-a7dc4c22a927eb27c81619720548fe2a9516c193.tar.gz
Merge pull request #80334 from Sauermann/fix-window-out-of-viewport-events
Fix nodes receiving mouse events in black bars of `Window`
Diffstat (limited to 'scene/main/window.h')
-rw-r--r--scene/main/window.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/main/window.h b/scene/main/window.h
index d5b8cd4ead..c387ffa92a 100644
--- a/scene/main/window.h
+++ b/scene/main/window.h
@@ -203,6 +203,10 @@ private:
void _event_callback(DisplayServer::WindowEvent p_event);
virtual bool _can_consume_input_events() const override;
+ bool mouse_in_window = false;
+ void _update_mouse_over(Vector2 p_pos) override;
+ void _mouse_leave_viewport() override;
+
Ref<Shortcut> debugger_stop_shortcut;
protected: