| Ticket UUID: | 92e028b41bb1e0e31cc16cf0fbdbf845ccdfc061 | |||
| Title: | Theme changes when restoring a remote desktop connection | |||
| Type: | Bug | Version: | 8.6.6 | |
| Submitter: | boboberggren | Created on: | 2017-06-21 06:00:08 | |
| Subsystem: | 88. Themed Tk | Assigned To: | fvogel | |
| Priority: | 6 | Severity: | Cosmetic | |
| Status: | Closed | Last Modified: | 2017-06-30 18:57:11 | |
| Resolution: | Fixed | Closed By: | fvogel | |
| Closed on: | 2017-06-30 18:57:11 | |||
| Description: |
1. Use Windows remote desktop to connect to Windows server (tested on W10 client and WS2016 server). 2. Start a Tk program on the server (theme will be vista). 3. Disconnect the remote desktop session (don't log out). 4. Re-connect to the server. The theme is now xpnative. I believe Tk receives a WM_THEMECHANGED message from Windows (see win/ttkWinMonitor.c) which will cause it to fallback to the xpnative theme. Can this behaviour be changed? | |||
| User Comments: |
fvogel added on 2017-06-30 18:57:11:
Merged to core-8-6-branch and trunk. fvogel added on 2017-06-21 19:56:32: The patch looks OK to me. Both tests A and B exercised on Vista, and correct results obtained. On Vista at least the performance settings (thus the theme selected by Windows when changing these performance settings) are not a global settings, they are specific to each user. I have committed your patch in branch bug-92e028b41b for further review. bll added on 2017-06-21 18:38:27: For testing. Test A: On Vista, Windows 7, et. al. Sign on as the first user. Start the test script. Switch users and sign on as the second user. Control Panel -> System -> Advanced System Settings -> Performance -> Visual Effects -> (Write down your current settings) -> Adjust for Best Performance. This will turn on winnative display mode. Switch users back to the first user. At one point I actually ended up in a situation where the two users had different display modes, but I don't think that's something we need to worry about. Who uses winnative any more? I used to when I had Win2K and Vista, as I never had high end graphics cards. Test B: Adjust the script to set the theme to 'alt'. Make sure the theme stays as 'alt' when performing the steps above. bll added on 2017-06-21 15:28:20: Patch attached. This code was in place as a second administrator on a windows (7 and below?...I did not test on Windows 8.1) machine can change the machine's settings to 'best performance' (apparently a global change) which requires a theme change to 'winnative'. Windows 10 no longer has the fallback to winnative when best performance is selected. The original code is in fact incorrect, as it would change any user selected theme back to xpnative. Tested on Windows 7 and Windows 10. fvogel added on 2017-06-21 06:24:00: See also [c5eb909f86] (possible duplicate). | |||
Attachments:
- win-c5eb909f86.diff [download] added by bll on 2017-06-21 15:29:16. [details]
- test_theme.tcl [download] added by boboberggren on 2017-06-21 06:03:35. [details]
