diff options
| author | Sergey Pusnei | 2017-03-27 21:37:23 -0400 |
|---|---|---|
| committer | Sergey Pusnei | 2017-03-28 19:18:40 -0400 |
| commit | c79e998d1f12b281530b15d3015e7128418c8a60 (patch) | |
| tree | fe6d6505feb14da32efd69a104b27c372af8bfd9 /platform/windows | |
| parent | d4740a98537b1e7dcb6fb48176abdebe27eee83c (diff) | |
| download | godot-c79e998d1f12b281530b15d3015e7128418c8a60.tar.gz godot-c79e998d1f12b281530b15d3015e7128418c8a60.tar.zst godot-c79e998d1f12b281530b15d3015e7128418c8a60.zip | |
8145 - Mouse Position is unknown until first mouse event on X11 & Win
- X11 update input->pos on EnterNotify
- X11 & Win call first-time events processing before main initialization
Diffstat (limited to 'platform/windows')
| -rw-r--r-- | platform/windows/os_windows.cpp | 3 |
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(); |
