diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2022-02-19 15:16:51 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2022-02-19 15:16:51 +0200 |
commit | 44214359c0f95dcce3a1390506e9fd74202d5ae7 (patch) | |
tree | 4ecd038e8b97806f6e6658dda8bc557baf488cc4 /src/ui/window.h | |
parent | 1ef7170f2b1b8c48fababc112673afa17729033f (diff) |
Fixed several event handling issues
Events are expected to have a valid windowID now, and the current window also has to be correct when dispatching or processing any events.
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 5abf23eb..c7d59380 100644 --- a/src/ui/window.h +++ b/src/ui/window.h | |||
@@ -139,7 +139,7 @@ iAnyObject * hitChild_Window (const iWindow *, iInt2 coord); | |||
139 | uint32_t frameTime_Window (const iWindow *); | 139 | uint32_t frameTime_Window (const iWindow *); |
140 | SDL_Renderer * renderer_Window (const iWindow *); | 140 | SDL_Renderer * renderer_Window (const iWindow *); |
141 | int numRoots_Window (const iWindow *); | 141 | int numRoots_Window (const iWindow *); |
142 | iRoot * findRoot_Window (const iWindow *, const iWidget *widget); | 142 | //iRoot * findRoot_Window (const iWindow *, const iWidget *widget); |
143 | iRoot * otherRoot_Window (const iWindow *, iRoot *root); | 143 | iRoot * otherRoot_Window (const iWindow *, iRoot *root); |
144 | 144 | ||
145 | iBool processEvent_Window (iWindow *, const SDL_Event *); | 145 | iBool processEvent_Window (iWindow *, const SDL_Event *); |