summaryrefslogtreecommitdiff
path: root/scene/main/window.cpp
diff options
context:
space:
mode:
authorMinusKube <minuskube@gmail.com>2022-09-07 19:31:57 +0200
committerMinusKube <minuskube@gmail.com>2022-09-07 19:31:57 +0200
commit06b86fad0d7d21d5c61da9ff4896c768ba6c1679 (patch)
treed26ff901ff2dcd8aa03d4b26bd73ecdfc487a870 /scene/main/window.cpp
parente7a0a97c0bc5d86644e62d537503e3b05313a01c (diff)
Fix MOUSE_MODE_CAPTURED not working correctly with popups
Diffstat (limited to 'scene/main/window.cpp')
-rw-r--r--scene/main/window.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/scene/main/window.cpp b/scene/main/window.cpp
index 04f56bb874..639fa48966 100644
--- a/scene/main/window.cpp
+++ b/scene/main/window.cpp
@@ -986,18 +986,6 @@ DisplayServer::WindowID Window::get_window_id() const {
return window_id;
}
-void Window::warp_mouse(const Vector2 &p_position) {
- Transform2D xform = get_screen_transform();
- Vector2 gpos = xform.xform(p_position);
-
- if (transient_parent && !transient_parent->is_embedding_subwindows()) {
- Transform2D window_trans = Transform2D().translated(get_position() + (transient_parent->get_visible_rect().size - transient_parent->get_real_size()));
- gpos = window_trans.xform(gpos);
- }
-
- Input::get_singleton()->warp_mouse(gpos);
-}
-
void Window::set_wrap_controls(bool p_enable) {
wrap_controls = p_enable;
if (wrap_controls) {