Dark mode: cursor flickers on the file icon when pressing ctrl+c and ctrl+x or F5 and F6

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Brat2
Junior Member
Junior Member
Posts: 4
Joined: 2023-06-17, 14:24 UTC

Dark mode: cursor flickers on the file icon when pressing ctrl+c and ctrl+x or F5 and F6

Post by *Brat2 »

Dark Mode
Image: https://imageupload.io/485dpS3yg8FdiTm
If you set “cursor color” in the color options and disable “Use Windows theme for cursor” and enable “Use inverted selection”, then with ctrl+c and ctrl+x or F5 and F6 the cursor flickers on the file icon (selected object). This problem is probably related to the "FileTipWindowsOnIcon" option. Strange behavior... first it selects the file icon and then only the cursor to the full width (this was noticed in a split second).

video gif animation (the service doesn't play GIF animation correctly for some reason)
Image: https://imageupload.io/Fmj6uXcrMuLVZml
Image: https://imageupload.io/aEifnTI1hZ3pVBM

Moderator message from: white » 2023-10-18, 11:51 UTC

Split into a separate bug report from this post: viewtopic.php?p=443141#p443141
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Dark mode: cursor flickers on the file icon when pressing ctrl+c and ctrl+x or F5 and F6

Post by *ghisler(Author) »

I don't think I can do anything about the flickering, it just means that the lines are getting updated.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Dark mode: cursor flickers on the file icon when pressing ctrl+c and ctrl+x or F5 and F6

Post by *ghisler(Author) »

This isn't really a bug. What happens is that
1. Total Commander sees that nothing is selected when you press Ctrl+C
2. It selects the file under the cursor so it has something to copy
3. It copies the selected files/folders to the clipboard (which would be the one just selected)
4. It removes the selection to revert back to step 1

Now the icon gets redrawn immediately while the rest of the line gets redrawn in a WM_DRAWITEM message - but it gets unselected so fast that the text background remains black. When you press F5 (your second animation) there is enough time to redraw the entire line.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Dark mode: cursor flickers on the file icon when pressing ctrl+c and ctrl+x or F5 and F6

Post by *ghisler(Author) »

Moderator message

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