From e9aba4795f6b2341f8242dab36cd631a36b79c7e Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Thu, 30 Dec 2021 16:55:47 +0700 Subject: [PATCH] Allow window resizing regardless of frameless or other options Fix bug on Windows where the disableResize option depends on the frameless option. --- v2/internal/frontend/desktop/windows/window.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/internal/frontend/desktop/windows/window.go b/v2/internal/frontend/desktop/windows/window.go index fb0c89096..ee5840ec0 100644 --- a/v2/internal/frontend/desktop/windows/window.go +++ b/v2/internal/frontend/desktop/windows/window.go @@ -57,10 +57,10 @@ func NewWindow(parent winc.Controller, appoptions *options.App) *Window { result.SetText(appoptions.Title) if appoptions.Frameless == false && !appoptions.Fullscreen { result.EnableMaxButton(!appoptions.DisableResize) - result.EnableSizable(!appoptions.DisableResize) result.SetMinSize(appoptions.MinWidth, appoptions.MinHeight) result.SetMaxSize(appoptions.MaxWidth, appoptions.MaxHeight) } + result.EnableSizable(!appoptions.DisableResize) if appoptions.Windows != nil { if appoptions.Windows.WindowIsTranslucent {