[PR #11221] [MERGED] Allow reordering tabs when UAC is disabled #28455

Open
opened 2026-01-31 09:28:38 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/11221
Author: @zadjii-msft
Created: 9/14/2021
Status: Merged
Merged: 9/16/2021
Merged by: @undefined

Base: mainHead: dev/migrie/b/7754-elevated-tearing


📝 Commits (4)

📊 Changes

1 file changed (+18 additions, -6 deletions)

View changed files

📝 src/cascadia/TerminalApp/AppLogic.cpp (+18 -6)

📄 Description

When we're elevated, we disable drag/dropping tabs when elevated, because of a platform limitation that causes the app to crash (see #4874). However, if the user has UAC disabled, this actually works alright. So I'm adding it back in that case.

I'm not positive if this is the best way to check if UAC is disabled, but normally, you'll get a TokenElevationTypeFull when elevated, not TokenElevationTypeDefault. If the app is elevated, but there's not a split token, that kinda implies there's no user account separation. If I'm wrong, it's just code, let's replace this with something that does work.

Validation Steps Performed

Booted up a Win10 VM, set enableLUA to 0, rebooted, and checked if this exploded. It didn't.

References #4874
References #3581
Work done in pursuit of #11096
Closes #7754


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/11221 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 9/14/2021 **Status:** ✅ Merged **Merged:** 9/16/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/migrie/b/7754-elevated-tearing` --- ### 📝 Commits (4) - [`c2fcdcb`](https://github.com/microsoft/terminal/commit/c2fcdcbe10482808a9054e7e25d1847117c187a3) THis fixes #7754 - [`6806144`](https://github.com/microsoft/terminal/commit/6806144309d72293bb148e6fd50ed1bf1a22288d) who are you to tell me sorta isn't a word - [`744d384`](https://github.com/microsoft/terminal/commit/744d3842fff66dfe6a46a1f1ca98d931f9c63275) checking errors is important - [`739c6bb`](https://github.com/microsoft/terminal/commit/739c6bb05c5e860951f5596d323c2a64412d7490) thems some sweet sweet wil helpers ### 📊 Changes **1 file changed** (+18 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/AppLogic.cpp` (+18 -6) </details> ### 📄 Description When we're elevated, we disable drag/dropping tabs when elevated, because of a platform limitation that causes the app to _crash_ (see #4874). However, if the user has UAC disabled, this actually works alright. So I'm adding it back in that case. I'm not positive if this is the best way to check if UAC is disabled, but normally, you'll get a [`TokenElevationTypeFull`] when elevated, not `TokenElevationTypeDefault`. If the app is elevated, but there's not a split token, that kinda implies there's no user account separation. If I'm wrong, it's just code, let's replace this with something that does work. ## Validation Steps Performed Booted up a Win10 VM, set `enableLUA` to `0`, rebooted, and checked if this exploded. It didn't. References #4874 References #3581 Work done in pursuit of #11096 Closes #7754 [`TokenElevationTypeFull`]: https://docs.microsoft.com/en-us/windows/win32/api/winnt/ne-winnt-token_elevation_type --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:28:38 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#28455