mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-30 13:51:53 +08:00
fix: single-clicking titlebar should not maximize/restore window on macOS
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user