summaryrefslogtreecommitdiffstats
path: root/win/ttkWinMonitor.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-07-03 11:40:10 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-07-03 11:40:10 (GMT)
commitecc4f670f1da84ac826515e88f9d5da8c0bc38a6 (patch)
treeef434b01f11487a3fca3b70094b98e6acb29c491 /win/ttkWinMonitor.c
parent9e275a46af3b084dd6191ad979a173bab25f417e (diff)
parenta2d0ee1d83897b9b5d95ea1e6182cdc2448e9425 (diff)
downloadtk-rfe_6c0d7aec67.zip
tk-rfe_6c0d7aec67.tar.gz
tk-rfe_6c0d7aec67.tar.bz2
merge core-8-6-branchrfe_6c0d7aec67
Diffstat (limited to 'win/ttkWinMonitor.c')
-rw-r--r--win/ttkWinMonitor.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/win/ttkWinMonitor.c b/win/ttkWinMonitor.c
index c6e906b..6e46374 100644
--- a/win/ttkWinMonitor.c
+++ b/win/ttkWinMonitor.c
@@ -122,12 +122,15 @@ WndProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp)
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? */