deanis
256 discussion posts
(Searched before posting, but couldn't find anything in the sea of Alt+Tab discussions...)
Why is it that Closed windows are shown as Xs in the DF Alt+Tab switcher? If you're going through the effort of painting a different icon for a window that no longer has a valid handle, wouldn't it be just as easy to remove that icon entirely?
How long does the closed window stay there? That red X icon shows up because it couldn't get a preview from the Windows API (because it's already closed), but it should only be there for at most 1 second after closing a window.
deanis
256 discussion posts
Well, it stays there until I release Alt, but it is gone the next time. I would think a quick if `if !IsWindow(hWnd) then don't show in Alt+Tab` would do it, but I don't know the underlying code.
Sorry for the delayed response on this. The reason this happens is because DF needs to poll to update the Alt+Tab Handler in the background when it's not actually open, so that stuff in the window isn't getting shuffled around after it opens. We could make the timer shorter, but that would negatively impact CPU performance, so unfortunately, it's about the best it's going to get right now.
deanis
256 discussion posts
I'm probably over simplifying , but does it force a poll just before display?
It doesn't force a poll, it tries to show the window as fast as possible.
deanis
256 discussion posts
Gotcha. I guess I'll have to live with it. I often close a window then immediately Alt+Tab to another window (mouse in one hand, other hand on the keyboard), so I see this red X quite often.
Perhaps an advanced option to force a poll before displaying the Alt+Tab? I could live with the slowdown if I knew that it's because of something I turned on.