diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-18 08:26:31 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-18 08:26:31 +0300 |
commit | 95941a8fca886ba258716c535d51d0d68d075993 (patch) | |
tree | 0be54cd99abf2da1bbc426485c6a980546a6a3a9 /src/ui/window.h | |
parent | daaf3e72b472e05a4378a7789c6ebedd9b0e9b6e (diff) |
Tracking hover widget; cleanup
The hover widget may get deleted during event processing, so Window keeps track of it for refreshing.
TODO: Random crash when a destroyed menu is still in the onTop array (?).
Diffstat (limited to 'src/ui/window.h')
-rw-r--r-- | src/ui/window.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/window.h b/src/ui/window.h index a5b8f137..282e1682 100644 --- a/src/ui/window.h +++ b/src/ui/window.h | |||
@@ -86,6 +86,7 @@ struct Impl_Window { | |||
86 | iRoot * roots[2]; /* root widget and UI state; second one is for split mode */ | 86 | iRoot * roots[2]; /* root widget and UI state; second one is for split mode */ |
87 | iRoot * keyRoot; /* root that has the current keyboard input focus */ | 87 | iRoot * keyRoot; /* root that has the current keyboard input focus */ |
88 | iWidget * hover; | 88 | iWidget * hover; |
89 | iWidget * lastHover; /* cleared if deleted */ | ||
89 | iWidget * mouseGrab; | 90 | iWidget * mouseGrab; |
90 | iWidget * focus; | 91 | iWidget * focus; |
91 | float pixelRatio; /* conversion between points and pixels, e.g., coords, window size */ | 92 | float pixelRatio; /* conversion between points and pixels, e.g., coords, window size */ |
@@ -98,7 +99,6 @@ struct Impl_Window { | |||
98 | SDL_Cursor * cursors[SDL_NUM_SYSTEM_CURSORS]; | 99 | SDL_Cursor * cursors[SDL_NUM_SYSTEM_CURSORS]; |
99 | SDL_Cursor * pendingCursor; | 100 | SDL_Cursor * pendingCursor; |
100 | int loadAnimTimer; | 101 | int loadAnimTimer; |
101 | // iAnim rootOffset; | ||
102 | int keyboardHeight; /* mobile software keyboards */ | 102 | int keyboardHeight; /* mobile software keyboards */ |
103 | }; | 103 | }; |
104 | 104 | ||