(solved after WindowsTM updates) Restored from taskbar in Window 11
Moderators: Hacker, petermad, Stefan2, white
(solved after WindowsTM updates) Restored from taskbar in Window 11
Windows 11, 4K display (DisplayPort connection) with 200% scaling, TC 10.52 64-bit.
There is an icon on desktop which is a one-liner powershell script to turn display off via API call in user32.dll; Ctrl+Alt+Numpad* assigned as a hot key.
Clicked on TC's taskbar button to minimize to taskbar normal TC's desktop window.
Pressed Ctrl+Alt+Numpad* - screen got black, then pressed power button on the display.
Now pressed power button on the display again and tapped the left Ctrl key (could use a move mouse) to wake up the display.
TC window appears on the desktop briefly as half-sized, then gets restored to normal size.
Since only a mouse move of a harmless key were used to wake up the display, this TC window action was not requested or expected. Other active application's windows were not restored in this case. Visual Studio or Firefox for example.
By the way, long file name truncation issue could be seen in this case.
Moved from Bugs forum to English forum by moderator
There is an icon on desktop which is a one-liner powershell script to turn display off via API call in user32.dll; Ctrl+Alt+Numpad* assigned as a hot key.
Clicked on TC's taskbar button to minimize to taskbar normal TC's desktop window.
Pressed Ctrl+Alt+Numpad* - screen got black, then pressed power button on the display.
Now pressed power button on the display again and tapped the left Ctrl key (could use a move mouse) to wake up the display.
TC window appears on the desktop briefly as half-sized, then gets restored to normal size.
Since only a mouse move of a harmless key were used to wake up the display, this TC window action was not requested or expected. Other active application's windows were not restored in this case. Visual Studio or Firefox for example.
By the way, long file name truncation issue could be seen in this case.
Moved from Bugs forum to English forum by moderator
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Restored from taskbar in Window 11
Is that display connected via Display Port? It sounds like the connection to the monitor is lost for a short time, which causes a loss of screen resolution via Display Port. This causes TC to restore its size when the old resolution is returned after turning on the monitor.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Restored from taskbar in Window 11
TC, Firefox and Visual Studio were minimized to taskbar, and desktop had no application windows.
It was expected that on display power on and wake up all applications would keep the minimized state as taskbar buttons.
Instead, TC was restored to "normal" windows state visible on desktop while other applications correctly remained minimized.
It was expected that on display power on and wake up all applications would keep the minimized state as taskbar buttons.
Instead, TC was restored to "normal" windows state visible on desktop while other applications correctly remained minimized.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Restored from taskbar in Window 11
TC does not restore itself out of nowhere. Something must have given it the focus.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Restored from taskbar in Window 11
There are no scripts running. no macros assigned to the left Ctrl or mouse moves; I was very careful to avoid pressing random keys or mouse buttons.
Yet managed to repeat twice right now for a test - with left Ctrl and with mouse move. Probably some time should pass before powering diplay on.
Never have seen this issue previously with VGA and DVI connected displays in earlier versions of Windows.
Blind guess without the source code, but possibly TC was shown somewhere in the processing of Windows events related to power state, display state and disk activity.
Yet managed to repeat twice right now for a test - with left Ctrl and with mouse move. Probably some time should pass before powering diplay on.
Never have seen this issue previously with VGA and DVI connected displays in earlier versions of Windows.
Blind guess without the source code, but possibly TC was shown somewhere in the processing of Windows events related to power state, display state and disk activity.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Restored from taskbar in Window 11
Sorry, I don't think there is anything I can do about it.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Restored from taskbar in Window 11
As time goes, several updates were released and installed - both for WIndows and video drivers.
Still no idea what it was, but the issue is not observed any more.
This topic could be closed.
Still no idea what it was, but the issue is not observed any more.
This topic could be closed.
Re: (solved after WindowsTM updates) Restored from taskbar in Window 11
Update: The issue is still present in Windows 11, apparently not limited to TC only.
Visual Studio was caught doing the same locally - window was restored from minimized to taskbar state on the event of display wake up.
Not a big deal in any case.
Visual Studio was caught doing the same locally - window was restored from minimized to taskbar state on the event of display wake up.
Not a big deal in any case.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: (solved after WindowsTM updates) Restored from taskbar in Window 11
It sounds like this script is somehow passing the focus to the last active program (e.g. Total Commander or Visual Studio), which restores them.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: (solved after WindowsTM updates) Restored from taskbar in Window 11
More like a Windows' feature, because this behaviour also could be seen after using power button on the monitor.