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
This commit is contained in:
Sergey Pusnei
2017-03-27 21:37:23 -04:00
parent d4740a9853
commit c79e998d1f
2 changed files with 11 additions and 1 deletions

View File

@ -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();