=> b552ed70ee2abb01a67c7e0c43bda298000db865
[1mdiff --git a/src/ui/window.c b/src/ui/window.c[m [1mindex 9793dfdb..2d20c0e3 100644[m [1m--- a/src/ui/window.c[m [1m+++ b/src/ui/window.c[m [36m@@ -586,6 +586,11 @@[m [mvoid init_Window(iWindow *d, enum iWindowType type, iRect rect, uint32_t flags)[m info.name,[m info.flags & SDL_RENDERER_ACCELERATED ? " (accelerated)" : "");[m }[m [32m+[m[32m#endif[m [32m+[m[32m#if defined (iPlatformMsys)[m [32m+[m[32m if (type == extra_WindowType) {[m [32m+[m[32m enableDarkMode_SDLWindow(d->win);[m [32m+[m[32m }[m #endif[m drawBlank_Window_(d);[m d->pixelRatio = pixelRatio_Window_(d); /* point/pixel conversion */[m [36m@@ -689,7 +694,7 @@[m [mvoid init_MainWindow(iMainWindow *d, iRect rect) {[m }[m #endif[m }[m [31m-#if defined(iPlatformMsys)[m [32m+[m[32m#if defined (iPlatformMsys)[m SDL_SetWindowMinimumSize(d->base.win, minSize.x * d->base.displayScale, minSize.y * d->base.displayScale);[m useExecutableIconResource_SDLWindow(d->base.win);[m enableDarkMode_SDLWindow(d->base.win);[m [1mdiff --git a/src/win32.c b/src/win32.c[m [1mindex 287c11e9..a442d7d1 100644[m [1m--- a/src/win32.c[m [1m+++ b/src/win32.c[m [36m@@ -1,4 +1,4 @@[m [31m-/* Copyright 2020 Jaakko Keränen[m [32m+[m[32m/* Copyright 2020 Jaakko Keränen [m[41m [m [m Redistribution and use in source and binary forms, with or without[m modification, are permitted provided that the following conditions are met:[m [36m@@ -280,13 +280,15 @@[m [mvoid enableDarkMode_SDLWindow(SDL_Window *win) {[m [m void handleCommand_Win32(const char *cmd) {[m if (equal_Command(cmd, "theme.changed")) { [m [31m- iConstForEach(PtrArray, iter, mainWindows_App()) {[m [31m- iMainWindow *mw = iter.ptr;[m [31m- SDL_Window *win = mw->base.win;[m [32m+[m[32m iConstForEach(PtrArray, iter, regularWindows_App()) {[m[41m [m [32m+[m[32m iWindow *w = iter.ptr;[m[41m [m [32m+[m[32m SDL_Window *win = w->win;[m[41m [m if (refreshTitleBarThemeColor_(windowHandle_(win)) &&[m [31m- !isFullscreen_MainWindow(mw) &&[m [32m+[m[32m (type_Window(w) != main_WindowType ||[m[41m [m [32m+[m[32m !isFullscreen_MainWindow(as_MainWindow(w))) &&[m[41m [m !argLabel_Command(cmd, "auto")) {[m [31m- /* Silly hack, but this will ensure that the non-client area is repainted. */[m [32m+[m[32m /* Silly hack, but this will ensure that the non-client[m[41m [m [32m+[m[32m area is repainted. */[m[41m [m SDL_MinimizeWindow(win);[m SDL_RestoreWindow(win);[m }[m
text/gemini; charset=utf-8
This content has been proxied by September (ba2dc).