Commit 2e33d50
authored
Fix Linux and Windows spinOnce behaviour (#5542)
* Fix Linux and Windows spinOnce behaviour
Repeatedly calling processEvents is necessary to service the message
queue in a timely manner.
On Windows this also avoids the problem of missing WM_QUIT messages due
to being stuck in a modal event loop, most commonly resizing or moving
the window.
* Avoid busy waiting and add failsafe one-shot timer1 parent e816414 commit 2e33d50
1 file changed
Lines changed: 18 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
601 | 614 | | |
602 | 615 | | |
603 | 616 | | |
| |||
0 commit comments