Tab bar RMB glitches #22458

Open
opened 2026-01-31 08:13:58 +00:00 by claunia · 3 comments
Owner

Originally created by @ChGen on GitHub (Oct 26, 2024).

Originally assigned to: @carlos-zamora on GitHub.

Windows Terminal version

1.21.2911.0

Windows build number

10.0.26100.0

Other Software

No response

Steps to reproduce

Open Windows Terminal. Do Right Mouse Button click multiple times on the tab, shifting a cursor along tab header area. Note that sometimes you get Windows titlebar standard context menu (like on Alt+Space) instead of context menu of the current tab with completely different set of actions and design.
Also note, that in Dark Mode this system titlebar context menu is always white, while some Windows apps do change system menus to dark mode too (like VSCode, Notepad++, HWiNFO64).

Expected Behavior

While doing right mouse button click on the tab header area, correct type of context menu must be shown.

Actual Behavior

While doing right mouse button click on the tab header area, about 1 in 5 clicks shows Windows titlebar standard context menu (like on Alt+Space) instead of context menu of the tab clicked.

Image
Image

Originally created by @ChGen on GitHub (Oct 26, 2024). Originally assigned to: @carlos-zamora on GitHub. ### Windows Terminal version 1.21.2911.0 ### Windows build number 10.0.26100.0 ### Other Software _No response_ ### Steps to reproduce Open Windows Terminal. Do Right Mouse Button click multiple times on the tab, shifting a cursor along tab header area. Note that sometimes you get Windows titlebar standard context menu (like on Alt+Space) instead of context menu of the current tab with completely different set of actions and design. Also note, that in Dark Mode this system titlebar context menu is always white, while some Windows apps do change system menus to dark mode too (like VSCode, Notepad++, HWiNFO64). ### Expected Behavior While doing right mouse button click on the tab header area, correct type of context menu must be shown. ### Actual Behavior While doing right mouse button click on the tab header area, about 1 in 5 clicks shows Windows titlebar standard context menu (like on Alt+Space) instead of context menu of the tab clicked. ![Image](https://github.com/user-attachments/assets/0bbbb140-1866-4b43-8df6-fdfb0f495b61) ![Image](https://github.com/user-attachments/assets/a7d94dfe-a84d-4611-8a05-9080c34c0f95)
claunia added the Issue-BugProduct-TerminalArea-UserInterface labels 2026-01-31 08:13:58 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Oct 26, 2024):

Oh this is a crazy XAML bug, that I noted once before here: https://github.com/microsoft/terminal/issues/15744#issuecomment-1647692993

If you right-click on the menu (and then move your mouse off the menu), you get the window's title-bar context menu

lmao that's actually this hilarious XAML bug. If you right click on the shadow of any flyout, you get a system context menu. Literally makes no sense 🤣

I don't think we ever ended up filing this upstream, though we probably should

@zadjii-msft commented on GitHub (Oct 26, 2024): Oh this is a crazy XAML bug, that I noted once before here: https://github.com/microsoft/terminal/issues/15744#issuecomment-1647692993 > > If you right-click on the menu (and then move your mouse off the menu), you get the window's title-bar context menu > > lmao that's actually this _hilarious_ XAML bug. If you right click on the _shadow_ of any flyout, you get a system context menu. Literally makes no sense 🤣 I don't think we ever ended up filing this upstream, though we probably should
Author
Owner

@ChGen commented on GitHub (Oct 26, 2024):

It's actually quite annoying bug, since you suddenly get different menu, with different actions and all-white too (in the dark mode) 😁

@ChGen commented on GitHub (Oct 26, 2024): It's actually quite annoying bug, since you suddenly get different menu, with different actions and all-white too (in the dark mode) 😁
Author
Owner

@carlos-zamora commented on GitHub (Nov 6, 2024):

Note for myself: this does repro on WinUI, but just WinUI 2 + Xaml Islands

@carlos-zamora commented on GitHub (Nov 6, 2024): Note for myself: this does repro on WinUI, but just WinUI 2 + Xaml Islands
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22458