Attachment "win-c5eb909f86.diff" to
ticket [92e028b4]
added by
bll
2017-06-21 15:29:16.
--- x/tk8.6.6/win/ttkWinMonitor.c 2016-07-22 05:11:21.000000000 -0700
+++ tk8.6.6/win/ttkWinMonitor.c 2017-06-21 08:18:55.280142300 -0700
@@ -121,14 +121,17 @@
break;
case WM_THEMECHANGED:
/*
- * Reset the application theme to 'xpnative' if present,
- * which will in turn fall back to 'winnative' if XP theming
- * is disabled.
+ * Reset the application theme.
+ * On windows, it is possible to sign in as a second user, change
+ * the theme to 'winnative' (by setting the ui to 'best performance'),
+ * which is a machine-wide change, and then sign back on to the original user.
+ * Ttk_UseTheme needs to be executed again in order to process the fallback
+ * from vista/xpnative to winnative.
*/
- theme = Ttk_GetTheme(interp, "xpnative");
+ theme = Ttk_GetCurrentTheme(interp);
if (theme) {
Ttk_UseTheme(interp, theme);
/* @@@ What to do about errors here? */
}