aboutsummaryrefslogtreecommitdiff
path: root/platform/windows
diff options
context:
space:
mode:
authorRémi Verschelde2017-03-30 10:34:30 +0200
committerGitHub2017-03-30 10:34:30 +0200
commitaab668752351fb2ad47e2df2826ac332a83c6477 (patch)
tree03167e0b43436c8df606fd8019a2972ad09f012d /platform/windows
parent84bd039851e2b9466599057284cbac40eab430b5 (diff)
parentc79e998d1f12b281530b15d3015e7128418c8a60 (diff)
downloadgodot-aab668752351fb2ad47e2df2826ac332a83c6477.tar.gz
godot-aab668752351fb2ad47e2df2826ac332a83c6477.tar.zst
godot-aab668752351fb2ad47e2df2826ac332a83c6477.zip
Merge pull request #8180 from sergey-push/8145-Mouse_Position_is_unknown_until_first_mouse_event
8145 - Mouse Position is unknown until first mouse event on X11
Diffstat (limited to 'platform/windows')
-rw-r--r--platform/windows/os_windows.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp
index f1a9ba559..83a6aa607 100644
--- a/platform/windows/os_windows.cpp
+++ b/platform/windows/os_windows.cpp
@@ -2167,6 +2167,9 @@ void OS_Windows::run() {
if (!main_loop)
return;
+ // Process all events before the main initialization so the cursor will get initialized properly
+ process_events(); // get rid of pending events
+
main_loop->init();
uint64_t last_ticks = get_ticks_usec();