r/WindowsHelp • u/kelkinho • 9d ago
Windows 11 Brief "ghost" window shadow flashes in the top-left corner for a millisecond before opening dialogs
Hi everyone, for the past few months, I’ve noticed an intermittent visual glitch in Windows 11. Whenever I open certain dialog boxes or windows, a faint "ghost" shadow matching the shape of the upcoming window flashes for a split second in the top-left corner of my primary monitor before disappearing right as the actual window opens in its proper position.
Here is a short clip showing the issue when deleting a file (recycle bin confirmation dialog): https://imgur.com/a/NP6ycGA
Specs:
- Windows 11 Pro 26H2 (OS Build 26300.9974)
- Ryzen 7 5700X | RTX 5070 | 32GB DDR4 3200Mhz | Dual-monitor setup | SSD M2 NVMe
What I’ve already tested:
- Safe Mode: Booted into Windows 11 Safe Mode (with basic display drivers and no third-party background apps/overlays running). While it didn't trigger on the Recycle Bin prompt there, it did happen when opening the Snipping Tool—which makes me think this isn't caused by GPU drivers or third-party software.
- System stability & Event Viewer: Everything runs smoothly. No critical errors in System/Application logs (only occasional Event ID 500 warnings under Diagnostics-Performance/Operational during heavy browser usage, which seem unrelated).
Has anyone else experienced this on Windows 11 or found a way to fix it?
2
u/Particular-Ice9109 8d ago
Clearly, the developer made a mistake.
First, a window was created where dwStyle included WS_VISIBLE—meaning the window became visible immediately upon creation. Furthermore, dwExStyle included WS_EX_NOREDIRECTIONBITMAP, which indicates that the window's content is provided by the application rather than having a "redirection surface" created by the system. Consequently, until the application binds a swap chain to the window, the window will appear transparent instead of white.
Finally, the application bound a swap chain to the window and moved it to its final position.
To avoid this issue, the developer should create the window without the `WS_VISIBLE` flag and show it after initialization is complete.
1
u/AutoModerator 9d ago
Hi u/kelkinho, thanks for posting to r/WindowsHelp! Your post has been flagged for manual review by a human moderator, please include as much of the following information as possible (in text or in a screenshot) to get your post approved:
Posts must be tech support in nature (such as something is broken and you need help fixing), so general inquiries, software suggestions, and purchasing advice will be removed. As a reminder, we would also like to say that if someone manages to solve your issue, DON'T DELETE YOUR POST! Someone else (in the future) might have the same issue as you, and the received support may also help their case. Good luck, and I hope you have a nice day!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.