A configuration option to disable tab tearoff is needed. #23554

Closed
opened 2026-01-31 08:45:43 +00:00 by claunia · 4 comments
Owner

Originally created by @feeas on GitHub (Aug 27, 2025).

Description of the new feature

When clicking on a tab, if it moves slightly, Windows Terminal always detaches the tab into a new window, which is rather annoying. I have been struggling with this issue for a long time and hope that an option can be provided to disable tab tearoff.

While searching for solutions, I noticed that others are also struggling with this same issue.
https://www.reddit.com/r/WindowsHelp/comments/1iy1u94/windows_terminal_how_to_prevent_accidentally/

Proposed technical implementation details

No response

Originally created by @feeas on GitHub (Aug 27, 2025). ### Description of the new feature When clicking on a tab, if it moves slightly, Windows Terminal always detaches the tab into a new window, which is rather annoying. I have been struggling with this issue for a long time and hope that an option can be provided to disable tab tearoff. While searching for solutions, I noticed that others are also struggling with this same issue. https://www.reddit.com/r/WindowsHelp/comments/1iy1u94/windows_terminal_how_to_prevent_accidentally/ ### Proposed technical implementation details _No response_
Author
Owner

@lhecker commented on GitHub (Aug 27, 2025):

Presumably this is also an issue with Windows Explorer, right? They use the same tab-row control we do. In that case I'd not be in favor of adding a setting in our app but would rather look forward to an OS-wide fix for this.

@lhecker commented on GitHub (Aug 27, 2025): Presumably this is also an issue with Windows Explorer, right? They use the same tab-row control we do. In that case I'd not be in favor of adding a setting in our app but would rather look forward to an OS-wide fix for this.
Author
Owner

@feeas commented on GitHub (Aug 28, 2025):

Presumably this is also an issue with Windows Explorer, right? They use the same tab-row control we do. In that case I'd not be in favor of adding a setting in our app but would rather look forward to an OS-wide fix for this.

I wasn't aware that Explorer had such an issue. I never use the tab tearoff feature, and even if I need to separate a tab into a new window, the right-click menu already has a 'Move tab to new window' option. The older version of the terminal never supported tab tearoff anyway, so adding a flag to disable this feature should be quite straightforward, right?

@feeas commented on GitHub (Aug 28, 2025): > Presumably this is also an issue with Windows Explorer, right? They use the same tab-row control we do. In that case I'd not be in favor of adding a setting in our app but would rather look forward to an OS-wide fix for this. I wasn't aware that Explorer had such an issue. I never use the tab tearoff feature, and even if I need to separate a tab into a new window, the right-click menu already has a 'Move tab to new window' option. The older version of the terminal never supported tab tearoff anyway, so adding a flag to disable this feature should be quite straightforward, right?
Author
Owner

@lhecker commented on GitHub (Aug 28, 2025):

I know it sounds hilarious coming from a Microsoft employee, but Windows should provide a cohesive experience. Application should look and behave consistent and in a way you'd expect it. If we add this, we add a workaround for something that should not require a workaround to begin with. History has shown that leniency in this regard has always turned out poorly. 1

There are two related registry keys here:

HKEY_CURRENT_USER\Control Panel\Desktop\DragHeight
HKEY_CURRENT_USER\Control Panel\Desktop\DragWidth

We should test if WinUI picks those up. If it doesn't, they should fix that, for accessibility reasons.


  1. Oh, woops no more vertical taskbar. /s (etc.) ↩︎

@lhecker commented on GitHub (Aug 28, 2025): I know it sounds hilarious coming from a Microsoft employee, but Windows should provide a cohesive experience. Application should look and behave consistent and in a way you'd expect it. If we add this, we add a workaround for something that should not require a workaround to begin with. History has shown that leniency in this regard has always turned out poorly. [^1] There are two related registry keys here: ``` HKEY_CURRENT_USER\Control Panel\Desktop\DragHeight HKEY_CURRENT_USER\Control Panel\Desktop\DragWidth ``` We should test if WinUI picks those up. If it doesn't, they should fix that, for accessibility reasons. [^1]: Oh, woops no more vertical taskbar. /s (etc.)
Author
Owner

@feeas commented on GitHub (Aug 29, 2025):

I didn't expect the solution to be so simple. Just by increasing the value to more than 16, the chance of windows separating accidentally is greatly reduced. Even though they still separate sometimes, I feel this is good enough.

@feeas commented on GitHub (Aug 29, 2025): I didn't expect the solution to be so simple. Just by increasing the value to more than 16, the chance of windows separating accidentally is greatly reduced. Even though they still separate sometimes, I feel this is good enough.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23554