mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-20 06:18:12 +00:00
[client] app: delay showing the escape help for 250ms
This change prevents the help text being shown unless the escape key has been held for a minimum of 250ms (reduced from 500ms).
This commit is contained in:
@@ -157,7 +157,8 @@ static int renderThread(void * unused)
|
||||
}
|
||||
}
|
||||
|
||||
if (!g_state.resizeDone && g_state.resizeTimeout < microtime())
|
||||
const uint64_t now = microtime();
|
||||
if (!g_state.resizeDone && g_state.resizeTimeout < now)
|
||||
{
|
||||
g_state.ds->setWindowSize(
|
||||
g_state.dstRect.w,
|
||||
@@ -165,6 +166,8 @@ static int renderThread(void * unused)
|
||||
);
|
||||
g_state.resizeDone = true;
|
||||
}
|
||||
|
||||
app_handleRenderEvent(now);
|
||||
}
|
||||
|
||||
g_state.state = APP_STATE_SHUTDOWN;
|
||||
|
Reference in New Issue
Block a user