From d9e17b96f2999de1995b212c61d81cc6c6917408 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 13 Jun 2024 15:25:04 +0800 Subject: [PATCH] fix: dragging the border to resize the window looks weird on Linux (#177) --- src/Resources/Styles.axaml | 130 ++++++++++++++++++---------------- src/Views/ChromelessWindow.cs | 2 +- 2 files changed, 68 insertions(+), 64 deletions(-) diff --git a/src/Resources/Styles.axaml b/src/Resources/Styles.axaml index c08922e1..b0797692 100644 --- a/src/Resources/Styles.axaml +++ b/src/Resources/Styles.axaml @@ -40,21 +40,83 @@ - - diff --git a/src/Views/ChromelessWindow.cs b/src/Views/ChromelessWindow.cs index 7c4178c2..434d22d4 100644 --- a/src/Views/ChromelessWindow.cs +++ b/src/Views/ChromelessWindow.cs @@ -49,7 +49,7 @@ namespace SourceGit.Views private void OnWindowBorderPointerPressed(object sender, PointerPressedEventArgs e) { - if (sender is Border border && border.Tag is WindowEdge edge) + if (sender is Border border && border.Tag is WindowEdge edge && CanResize) BeginResizeDrag(edge, e); } }