summaryrefslogtreecommitdiff
path: root/src/ui/window.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-10-25 18:46:26 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-10-25 18:46:26 +0200
commitc2c86a3dcdf6d5e790981bdf115ef05c4897ebfe (patch)
treedaa3d4033243a8ec0b55324f5ff95e3c93d7546a /src/ui/window.h
parente2f606adc2df114a15a4052e18dedfd02e4bbf56 (diff)
Window: Workaround for a key handling issue
Likely a rare situation, but this workaround should be relatively safe -- ignore keydown events if they occur less than 10 milliseconds after the window has received input focus. IssueID #10
Diffstat (limited to 'src/ui/window.h')
-rw-r--r--src/ui/window.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/window.h b/src/ui/window.h
index 3ede1578..18df0cf9 100644
--- a/src/ui/window.h
+++ b/src/ui/window.h
@@ -38,6 +38,7 @@ struct Impl_Window {
38 iRect lastRect; /* updated when window is moved/resized */ 38 iRect lastRect; /* updated when window is moved/resized */
39 iBool isDrawFrozen; /* avoids premature draws while restoring window state */ 39 iBool isDrawFrozen; /* avoids premature draws while restoring window state */
40 iBool isMouseInside; 40 iBool isMouseInside;
41 uint32_t focusGainedAt;
41 SDL_Renderer *render; 42 SDL_Renderer *render;
42 iWidget * root; 43 iWidget * root;
43 float pixelRatio; 44 float pixelRatio;