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:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user