Skip to content

Commit f44e835

Browse files
committed
fix: single-clicking titlebar should not maximize/restore window on macOS
Signed-off-by: leo <longshuang@msn.cn>
1 parent 154f3e7 commit f44e835

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Views/ChromelessWindow.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ public ChromelessWindow()
3030
public void BeginMoveWindow(object _, PointerPressedEventArgs e)
3131
{
3232
if (e.ClickCount == 1)
33+
{
34+
if (OperatingSystem.IsMacOS())
35+
e.Pointer.Capture(this);
36+
3337
BeginMoveDrag(e);
38+
}
3439

3540
e.Handled = true;
3641
}

0 commit comments

Comments
 (0)