diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-27 11:40:50 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-27 11:40:50 +0300 |
commit | 170209cf926e2f714d507fefaa6b30fd245811ad (patch) | |
tree | 1dd6ff1e7c9ecf69c0857b8524bfdc82f07794b9 /src/ui/window.c | |
parent | 83e14d99ba75316da265cfa5f3fd092caa1498cf (diff) |
Refactor: Moving RootData so it can become non-global state
Diffstat (limited to 'src/ui/window.c')
-rw-r--r-- | src/ui/window.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index 9732a4f9..ea2a4ec0 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -162,8 +162,13 @@ static void removeMacMenus_(void) { | |||
162 | #endif | 162 | #endif |
163 | 163 | ||
164 | static void setupUserInterface_Window(iWindow *d) { | 164 | static void setupUserInterface_Window(iWindow *d) { |
165 | #if defined (iPlatformAppleDesktop) | ||
166 | insertMacMenus_(); | ||
167 | #endif | ||
168 | static iRootData rootData_; | ||
169 | setCurrent_Root(NULL, &rootData_); | ||
165 | d->root = createUserInterface_Root(); | 170 | d->root = createUserInterface_Root(); |
166 | setCurrent_Root(d->root); | 171 | setCurrent_Root(d->root, &rootData_); |
167 | } | 172 | } |
168 | 173 | ||
169 | static void updateRootSize_Window_(iWindow *d, iBool notifyAlways) { | 174 | static void updateRootSize_Window_(iWindow *d, iBool notifyAlways) { |