Can't move window (no, for real) #15866

Open
opened 2026-01-31 04:50:49 +00:00 by claunia · 0 comments
Owner

Originally created by @seanofw on GitHub (Nov 12, 2021).

Windows Terminal version (or Windows build number)

1.11.2921.0

Other Software

WSL 2

Steps to reproduce

Open Terminal. It mysteriously spawns behind every other window for some reason. Try to drag its around, or close it, or minimize it, or maximize it. None of those actions work unless I click outside its window afterward, and then they happen instantly.

Expected Behavior

Normal window behavior? I can drag it, and it drags. I can close it, and it closes.

Actual Behavior

I turned on my computer this morning (Windows 10.0.19043.1288), and opened a couple of Firefox windows and Discord, and then opened Terminal. Several very strange things happened:

  • First, its window spawns behind every other window. I have to click it to bring it to the foreground, every time. If I close and reopen it, it spawns behind every other window again.
  • Second, I can't drag it. I discovered, though, that in some cases if I clicked outside the tab area to drag it, it would eventually "move," but only after it lost focus -- i.e., after I finished the drag, if I clicked on another window, or the Start Menu, then suddenly it would jump to approximately where I'd dragged it). This only works about half the time, though.
  • Third (and this is super-weird) I started poking at its settings to see if something had changed in it. Opening other tabs (WSL, Powershell, cmd) has no effect on its behavior, but if a Settings tab is open, and only if a Settings tab is open, suddenly the window can be dragged normally! The moment the Settings tab is closed, though, it reverts back to the same non-dragging behavior. Or if I simply click back to the WSL tab, leaving Settings "open" in the background, it stops working again as well.
  • The lack of normal nonclient behavior extends beyond just dragging. If I click the "X" to close it, for example, it doesn't actually close until it loses focus to another window. Same for minimizing or maximizing.

When it spawns, it has only one WSL bash prompt in it. No Powershell, no cmd, nothing else.

I really don't know quite what's going on here: It's as though all nonclient messages are getting batched up when they occur, and then only get delivered when the window loses focus.

It happens really consistently right now. I'm not sure if it'll happen after I reboot Windows, but it started happening on a fresh boot this morning, so it might continue happening after a reboot.

That's all I have. My current workaround for making it usable is to leave a Settings tab open and switch to it whenever I want to drag the window. ¯_(ツ)_/¯

Originally created by @seanofw on GitHub (Nov 12, 2021). ### Windows Terminal version (or Windows build number) 1.11.2921.0 ### Other Software WSL 2 ### Steps to reproduce Open Terminal. It mysteriously spawns behind every other window for some reason. Try to drag its around, or close it, or minimize it, or maximize it. None of those actions work unless I click _outside_ its window afterward, and then they happen instantly. ### Expected Behavior Normal window behavior? I can drag it, and it drags. I can close it, and it closes. ### Actual Behavior I turned on my computer this morning (Windows 10.0.19043.1288), and opened a couple of Firefox windows and Discord, and then opened Terminal. Several very strange things happened: - First, its window spawns _behind_ every other window. I have to click it to bring it to the foreground, every time. If I close and reopen it, it spawns _behind_ every other window again. - Second, I can't drag it. I discovered, though, that in some cases if I clicked outside the tab area to drag it, it would eventually "move," but only _after_ it lost focus -- i.e., after I finished the drag, if I clicked on _another_ window, or the Start Menu, then suddenly it would jump to approximately where I'd dragged it). This only works about half the time, though. - Third (and this is super-weird) I started poking at its settings to see if something had changed in it. Opening other tabs (WSL, Powershell, cmd) has no effect on its behavior, but if a _Settings_ tab is open, and _only_ if a Settings tab is open, suddenly the window can be dragged normally! The moment the Settings tab is closed, though, it reverts back to the same non-dragging behavior. Or if I simply click back to the WSL tab, leaving Settings "open" in the background, it stops working again as well. - The lack of normal nonclient behavior extends beyond just dragging. If I click the "X" to close it, for example, it doesn't actually close until it loses focus to another window. Same for minimizing or maximizing. When it spawns, it has only one WSL bash prompt in it. No Powershell, no cmd, nothing else. I really don't know quite what's going on here: It's as though all nonclient messages are getting batched up when they occur, and then only get delivered when the window loses focus. It happens really consistently right now. I'm not sure if it'll happen after I reboot Windows, but it started happening on a fresh boot this morning, so it might continue happening after a reboot. That's all I have. My current workaround for making it usable is to leave a Settings tab open and switch to it whenever I want to drag the window. ¯\_(ツ)_/¯
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15866