[TC11.x] A flickering window appears at TopLeft on screen before centering.

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
cpp64
Member
Member
Posts: 108
Joined: 2023-05-12, 16:03 UTC

[TC11.x] A flickering window appears at TopLeft on screen before centering.

Post by *cpp64 »

# Windows 11 24H2
# TC 11.x (64bit) with a fresh wincmd.ini

On TC11.x, a flickering window appears at TopLeft on screen before centering.

This flickering windows at TopLeft is not captured by the rec-program(ffmpeg).
(I had captured my desktop using the ffmpeg with 120 fps, but the flickering window was not captured.)

So I captured the flickering window on monitor using a phone camera.

// wetransfer (7 days) : ahk(for reproducing), mp4, jpg
https://we.tl/t-9Q7jiPYbt5
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 49624
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC11.x] A flickering window appears at TopLeft on screen before centering.

Post by *ghisler(Author) »

I don't understand what's happening in your video. Why does the file name constantly change?
The window you see is normally shown when reading a directory takes longer than about 2 seconds, so you can abort the reading (e.g. hanging network drive, or very large directory).
Author of Total Commander
https://www.ghisler.com
User avatar
Dalai
Power Member
Power Member
Posts: 9682
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: [TC11.x] A flickering window appears at TopLeft on screen before centering.

Post by *Dalai »

ghisler(Author) wrote: 2024-10-17, 08:57 UTCI don't understand what's happening in your video. Why does the file name constantly change?
Take a look at the AHK script within the archive. Here's the relevant excerpt:

Code: Select all

n := 0
	Loop 1000
	{
		n += 1
		Send("+{F6}")
		Send(n)
		Send("{Enter}")
		Sleep(200)
	}
It's a counter that it sent to TC as the new filename for the renaming operation started by Shift+F6.
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
white
Power Member
Power Member
Posts: 5352
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC11.x] A flickering window appears at TopLeft on screen before centering.

Post by *white »

ghisler(Author) wrote: 2024-10-17, 08:57 UTC The window you see is normally shown when reading a directory takes longer than about 2 seconds, so you can abort the reading (e.g. hanging network drive, or very large directory).
It's not that window. It's the normal Rename/Move window.
There's nothing wrong with it, it is always displayed.


Edit:
Sorry, I didn't pay good enough attention and wrongly assumed it was about the normal Rename/Move Window.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 49624
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC11.x] A flickering window appears at TopLeft on screen before centering.

Post by *ghisler(Author) »

I see, so what do you expect me to change?
Author of Total Commander
https://www.ghisler.com
cpp64
Member
Member
Posts: 108
Joined: 2023-05-12, 16:03 UTC

Re: [TC11.x] A flickering window appears at TopLeft on screen before centering.

Post by *cpp64 »

ghisler(Author) wrote: 2024-10-17, 13:37 UTC I see, so what do you expect me to change?
Sometimes a new window appears at TopeLeft on screen for a very short time, then it moves to the center of screen.
The TopLeft window does not appear on win10.
It seems to be a win11-24h2's problem.
If you encounter the same issue later on win11-24h2, see if you can fix it.

// wetransfer (7 days) - mp4, ahk
https://we.tl/t-eeZ3IJ56mb

The ahk script is just for creating a window for test.
You can change it to any window that you wnat.
Last edited by cpp64 on 2024-10-17, 18:59 UTC, edited 6 times in total.
User avatar
white
Power Member
Power Member
Posts: 5352
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC11.x] A flickering window appears at TopLeft on screen before centering.

Post by *white »

cpp64 wrote: 2024-10-17, 17:05 UTC It seems to be a win11-24h2's problem.
I don't have Windows 24H2 yet, so I can't test that. It does not happen om my Windows 23H2 system.
cpp64
Member
Member
Posts: 108
Joined: 2023-05-12, 16:03 UTC

Re: [TC11.x] A flickering window appears at TopLeft on screen before centering.

Post by *cpp64 »

white wrote: 2024-10-17, 18:09 UTC I don't have Windows 24H2 yet, so I can't test that. It does not happen om my Windows 23H2 system.
I think that this issue has occured from win11-24h2.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 49624
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC11.x] A flickering window appears at TopLeft on screen before centering.

Post by *ghisler(Author) »

I don't have windos11-24h2 on any of my PCs either, and the update isn't even offered in a virtual machine.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 49624
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC11.x] A flickering window appears at TopLeft on screen before centering.

Post by *ghisler(Author) »

I just got Windows 11 24h2 yesterday. I tried your script but can't see any flickering window in the upper left corner, neither with Total Commander 32-bit nor 64-bit.
Author of Total Commander
https://www.ghisler.com
cpp64
Member
Member
Posts: 108
Joined: 2023-05-12, 16:03 UTC

Re: [TC11.x] A flickering window appears at TopLeft on screen before centering.

Post by *cpp64 »

The problem seems to be MS's fault.
The top-left flickering window also appears in other programs.
User avatar
AntonyD
Power Member
Power Member
Posts: 1417
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: [TC11.x] A flickering window appears at TopLeft on screen before centering.

Post by *AntonyD »

Hmm, it would be interesting to watch the video again - but for some reason you chose file-hosting server with a very limited duration.
Maybe it is worth uploading files to longer-lived servers?
#146217 personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 49624
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC11.x] A flickering window appears at TopLeft on screen before centering.

Post by *ghisler(Author) »

Author of Total Commander
https://www.ghisler.com
User avatar
AntonyD
Power Member
Power Member
Posts: 1417
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: [TC11.x] A flickering window appears at TopLeft on screen before centering.

Post by *AntonyD »

Yes, definitely such behavior is not observed anywhere else here.
BUT on the video - according to my feelings - we can see quite a clear process of renaming.
With a corresponding window from Total. It's just that at some point its coordinates jump
outside the main window, and are somewhere a little further than the upper left corner.
#146217 personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 49624
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC11.x] A flickering window appears at TopLeft on screen before centering.

Post by *ghisler(Author) »

I have made a few more tests and I can see a very faint flickering in the left top corner (but no window). It probably depends on the display adapter (graphics card) speed. I have tested it in the debugger, but single stepping through the code does not show this flickering. The window is shown with ShowWindow(hwnd,SW_SHOWNORMAL);
For testing, I have tried to set the position directly by calling
SetWindowPos(hwnd, 0, left, top, width, height, SWP_NOZORDER + SWP_NOACTIVATE + SWP_SHOWWINDOW);
instead, but I get the same flickering when using the script.

So my guess is that this is some weird Windows bug where Windows first shows the window and then moves it to the right place, which is normally invisible due to buffering, but appears when doing it quickly in a row. Since I cannot fix something like this, I'm moving this thread to "Will not be changed".

Moderator message from: ghisler(Author) » 2024-11-29, 09:52 UTC

Moved to will not be changed
Author of Total Commander
https://www.ghisler.com
Post Reply