(solved after WindowsTM updates) Restored from taskbar in Window 11

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
browny
Senior Member
Senior Member
Posts: 287
Joined: 2007-09-10, 13:19 UTC

(solved after WindowsTM updates) Restored from taskbar in Window 11

Post by *browny »

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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Restored from taskbar in Window 11

Post by *ghisler(Author) »

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
browny
Senior Member
Senior Member
Posts: 287
Joined: 2007-09-10, 13:19 UTC

Re: Restored from taskbar in Window 11

Post by *browny »

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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Restored from taskbar in Window 11

Post by *ghisler(Author) »

TC does not restore itself out of nowhere. Something must have given it the focus.
Author of Total Commander
https://www.ghisler.com
browny
Senior Member
Senior Member
Posts: 287
Joined: 2007-09-10, 13:19 UTC

Re: Restored from taskbar in Window 11

Post by *browny »

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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Restored from taskbar in Window 11

Post by *ghisler(Author) »

Sorry, I don't think there is anything I can do about it.
Author of Total Commander
https://www.ghisler.com
browny
Senior Member
Senior Member
Posts: 287
Joined: 2007-09-10, 13:19 UTC

Re: Restored from taskbar in Window 11

Post by *browny »

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.
browny
Senior Member
Senior Member
Posts: 287
Joined: 2007-09-10, 13:19 UTC

Re: (solved after WindowsTM updates) Restored from taskbar in Window 11

Post by *browny »

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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: (solved after WindowsTM updates) Restored from taskbar in Window 11

Post by *ghisler(Author) »

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
browny
Senior Member
Senior Member
Posts: 287
Joined: 2007-09-10, 13:19 UTC

Re: (solved after WindowsTM updates) Restored from taskbar in Window 11

Post by *browny »

More like a Windows' feature, because this behaviour also could be seen after using power button on the monitor.
Post Reply