Fix cursor cleanup
This commit is contained in:
parent
efa3872396
commit
a1e428fafa
@ -329,6 +329,8 @@ public:
|
|||||||
|
|
||||||
bool quit = false;
|
bool quit = false;
|
||||||
while (true) {
|
while (true) {
|
||||||
|
cleanup();
|
||||||
|
|
||||||
for (auto const& event : processEvents())
|
for (auto const& event : processEvents())
|
||||||
m_application->processInput(event);
|
m_application->processInput(event);
|
||||||
|
|
||||||
@ -368,8 +370,6 @@ public:
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_cursorCache.cleanup();
|
|
||||||
|
|
||||||
int64_t spareMilliseconds = round(m_updateTicker.spareTime() * 1000);
|
int64_t spareMilliseconds = round(m_updateTicker.spareTime() * 1000);
|
||||||
if (spareMilliseconds > 0)
|
if (spareMilliseconds > 0)
|
||||||
Thread::sleepPrecise(spareMilliseconds);
|
Thread::sleepPrecise(spareMilliseconds);
|
||||||
|
Loading…
Reference in New Issue
Block a user