Skip to content

Commit 4ed7c8d

Browse files
committed
fix(controls): remove duplicate right‑click event handling in TitleBar
1 parent 1de0cd3 commit 4ed7c8d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Wpf.Ui/Controls/TitleBar/TitleBar.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,9 @@ public override void OnApplyTemplate()
486486
_parentWindow = VisualTreeHelper.GetParent(_parentWindow);
487487
}
488488

489-
MouseRightButtonUp += TitleBar_MouseRightButtonUp;
489+
// HwndSourceHook handles the system menu, no additional processing needed.
490+
// Temporarily commented out, can be restored if WPF-based processing is needed in the future.
491+
// MouseRightButtonUp += TitleBar_MouseRightButtonUp;
490492

491493
/*_mainGrid = GetTemplateChild<System.Windows.Controls.Grid>(ElementMainGrid);*/
492494
_icon = GetTemplateChild<System.Windows.Controls.ContentPresenter>(ElementIcon);

0 commit comments

Comments
 (0)