[1mdiff --git a/src/app.c b/src/app.c[m
[1mindex d4b2ab54..4eeae94e 100644[m
[1m--- a/src/app.c[m
[1m+++ b/src/app.c[m
[36m@@ -689,7 +689,7 @@[m [mstatic int resizeWatcher_(void *user, SDL_Event *event) {[m
SDL_Event u = { .type = SDL_USEREVENT };[m
u.user.code = command_UserEventCode;[m
u.user.data1 = strdup("theme.changed");[m
[31m- u.user.windowID = SDL_GetWindowID(d->window->win);[m
[32m+[m[32m u.user.windowID = id_Window(d->window);[m
dispatchEvent_Widget(d->window->root, &u);[m
}[m
#endif[m
[36m@@ -782,7 +782,7 @@[m [mvoid postRefresh_App(void) {[m
SDL_Event ev;[m
ev.user.type = SDL_USEREVENT;[m
ev.user.code = refresh_UserEventCode;[m
[31m- ev.user.windowID = get_Window() ? SDL_GetWindowID(get_Window()->win) : 0;[m
[32m+[m[32m ev.user.windowID = id_Window(get_Window());[m
ev.user.data1 = NULL;[m
ev.user.data2 = NULL;[m
SDL_PushEvent(&ev);[m
[36m@@ -807,7 +807,7 @@[m [mvoid postCommand_App(const char *command) {[m
}[m
ev.user.type = SDL_USEREVENT;[m
ev.user.code = command_UserEventCode;[m
[31m- ev.user.windowID = get_Window() ? SDL_GetWindowID(get_Window()->win) : 0;[m
[32m+[m[32m ev.user.windowID = id_Window(get_Window());[m
ev.user.data1 = strdup(command);[m
ev.user.data2 = NULL;[m
SDL_PushEvent(&ev);[m
[1mdiff --git a/src/ui/window.c b/src/ui/window.c[m
[1mindex 7c16cf09..5101ed9b 100644[m
[1m--- a/src/ui/window.c[m
[1m+++ b/src/ui/window.c[m
[36m@@ -1042,6 +1042,10 @@[m [mvoid setCursor_Window(iWindow *d, int cursor) {[m
d->pendingCursor = d->cursors[cursor];[m
}[m
[m
[32m+[m[32muint32_t id_Window(const iWindow *d) {[m
[32m+[m[32m return d && d->win ? SDL_GetWindowID(d->win) : 0;[m
[32m+[m[32m}[m
[32m+[m
iInt2 rootSize_Window(const iWindow *d) {[m
return d->root->rect.size;[m
}[m
[1mdiff --git a/src/ui/window.h b/src/ui/window.h[m
[1mindex bdd4d008..8be8b88d 100644[m
[1m--- a/src/ui/window.h[m
[1m+++ b/src/ui/window.h[m
[36m@@ -60,6 +60,7 @@[m [mvoid setUiScale_Window (iWindow *, float uiScale);[m
void setFreezeDraw_Window (iWindow *, iBool freezeDraw);[m
void setCursor_Window (iWindow *, int cursor);[m
[m
[32m+[m[32muint32_t id_Window (const iWindow *);[m
iInt2 rootSize_Window (const iWindow *);[m
float uiScale_Window (const iWindow *);[m
iInt2 coord_Window (const iWindow *, int x, int y);[m
text/plain
This content has been proxied by September (ba2dc).