summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2017-07-28 18:38:15 (GMT)
committerdgp <dgp@users.sourceforge.net>2017-07-28 18:38:15 (GMT)
commitdb26456e05df9d0378855aa0c7581d432ad9f559 (patch)
tree3276604b93c10095478ad1085030bd5b2fedbe59 /win
parentf80f1a28a7243f744360244a2b954e373e0c12e6 (diff)
parent0e8fd576cb9f7f5672ff5310347192a4573a752e (diff)
downloadtk-db26456e05df9d0378855aa0c7581d432ad9f559.zip
tk-db26456e05df9d0378855aa0c7581d432ad9f559.tar.gz
tk-db26456e05df9d0378855aa0c7581d432ad9f559.tar.bz2
merge 8.6
Diffstat (limited to 'win')
-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? */