fix: single-clicking titlebar should not maximize/restore window on macOS

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2025-08-15 12:58:46 +08:00
parent 154f3e7241
commit f44e8352f4

View File

@@ -30,7 +30,12 @@ namespace SourceGit.Views
public void BeginMoveWindow(object _, PointerPressedEventArgs e)
{
if (e.ClickCount == 1)
{
if (OperatingSystem.IsMacOS())
e.Pointer.Capture(this);
BeginMoveDrag(e);
}
e.Handled = true;
}