-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graphic artifacts (small gray squares) on the desktop when the window is minimized #15219
Comments
Hey, do you happen to have "mica4all" or "mica everywhere" (I can't remember the name!) installed? |
@DHowett no, never heard of it. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Not exactly. I just see small grey squares, not rectangles like in your screenshot. Might be related, though. |
This comment was marked as off-topic.
This comment was marked as off-topic.
If someone's still seeing this regularly, it might be helpful to know what the actual window class for that window is (with like, spyxx or winspy). I'd guess that it's either:
and which one it is would really change my theory of the root cause. Also, knowing what version you're on would also help. If it's a xaml island window (for some reason), then 1.18 probably changed the way this presents itself. |
A thought: why are we using |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
3072x1728? That's... not even the resolution of the desktop i'm dropping the finder on, it's a 1920x1080 desktop. 3 out of 4 of mine are. It's probably some combination of my 4 displays (31080p + 1VGA). Yes, it appears that it's missing actually. And I missed that it was missing. oof |
This comment was marked as off-topic.
This comment was marked as off-topic.
Okay, maybe we've been tying two related but ultimately separate things here. Quick way to separate these out: @ClaireCJS Do you see the same behavior without any We definitely do have reports of the tiny, top-left square without TCC, but this may be exacerbated by it. I'm tempted to switch to diff --git a/src/interactivity/base/InteractivityFactory.cpp b/src/interactivity/base/InteractivityFactory.cpp
index fe8fc55cd..4e675cb85 100644
--- a/src/interactivity/base/InteractivityFactory.cpp
+++ b/src/interactivity/base/InteractivityFactory.cpp
@@ -330,8 +330,8 @@ using namespace Microsoft::Console::Interactivity;
// will return the console handle again, not the owning
// terminal's handle. It's not entirely clear why, but WS_POPUP
// is absolutely vital for this to work correctly.
- const auto windowStyle = WS_OVERLAPPEDWINDOW | WS_POPUP;
- const auto exStyles = WS_EX_TOOLWINDOW | WS_EX_TRANSPARENT | WS_EX_LAYERED | WS_EX_NOACTIVATE;
+ const auto windowStyle = WS_OVERLAPPED | WS_POPUP;^M
+ const auto exStyles = WS_EX_TRANSPARENT | WS_EX_LAYERED | WS_EX_NOACTIVATE;^M
// Attempt to create window.
hwnd = CreateWindowExW(exStyles, But I need to sync with my user32 contact before I'd feel comfortable with that. It seems to remove the size when it's restored (the tiny rectangle), but not the tiny one.... |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
How did I miss
Well then. I'm going to tenuously mark this If anyone DOES end up with a repro for this specifically1, then a Task Manager dump of OpenConsole.exe (NOT WindowsTerminal.exe) might be enlightening. Footnotes
|
Sounds good to me. If I see it again, I'll let you know. |
This happens concistently still for me. I have reformatted and reinstalled windows 11 several times (Windows 11 Pro) on a modern and powerful laptop from Lenovo. I did not experience this on my previous laptop which was a Windows Surface Book 2. Windows terminal: Laptop info: I have noticed these squares appear in the same way as described above after WSL ubuntu terminal being open over night or just over a long period of time. I noticed that the squares dissappear after restarting the PC. Once I noticed the squares dissappeared after running "wsl" in powershell as it seemed like WSL had turned itself off over night. Perhaps the root cause is WSL not gracefully shutting down while terminal windows are still open and the laptop is hibernation mode. If possible, tell me if there is anything I can do to fix this. EDIT: I will update this comment or make a new one when it happens again with the task manager dump. If possible, give me a step by step on how to do that if it is something specific as I have not done that before. EDIT 2: I generated a DMP file for windows terminal when the squares returned again. It is 900 mb. What is the best way to share this info? |
@ShakoFarhad Sorry I missed that! You should be able to share that with the team following these steps: https://github.com/microsoft/terminal/wiki/Troubleshooting-Tips#share-with-the-team Is it a dump of |
Seeing this again, for the first time in a while:
Which one? I have 4 instances of OpenConsole.exe |
I'm pretty sure that #17828 wasn't ultimately related to this, but can someone try out the latest Terminal Canary (>=1.23.2421.0) and see if that fixed this? You can grab terminal canary from aka.ms/terminal-canary-installer |
Are you using Preview or Stable? Which version exactly? |
sorry for the late response, Stable, version 1.21.2911.0, win11 23H2 latest patch |
Still happening for me in Stable, version 1.21.3231.0, win11 24H2. Are there any resolutions that might work (at least as a temporary solution)? It's a pity to change a terminal application because of a single bug. |
Windows Terminal version
1.16.10262.0
Windows build number
10.0.22621.1555
Other Software
No response
Steps to reproduce
I'm not sure exactly when it happens. I use WT without issues, and after a while I notice the glitch; not sure what makes it appear. Once it starts appearing, it stays.
Expected Behavior
There should be no graphic artifacts on the desktop when I minimize or restore the window.
Actual Behavior
Whenever I minimize the window, small gray squares appear just above the taskbar:
The gray squares are only visible on the desktop. If any window masks that part of the desktop, they don't appear (in other words, they appear below all windows, with the lowest z-index).
Their number seems to match the number of open tabs in WT, although it's a bit inconsistent.
When I restore the window, I see just one small gray square in the top left corner of the screen:
It also appears below all windows except the WT window (i.e. when the WT window is maximized I still see the square in its top-left corner, but any other window masks it).
The text was updated successfully, but these errors were encountered: