From 85b8c3025d34ecb1b1f648637caa745099b17ac3 Mon Sep 17 00:00:00 2001 From: Sean Date: Tue, 6 Sep 2022 12:43:47 -0700 Subject: [PATCH] fix: remove duplicate defs in win32/window.go (#1832) Introduced in 70c484f60317b3e2d50d154025869b3e6b9fe7d9 --- v2/internal/frontend/desktop/windows/win32/window.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/v2/internal/frontend/desktop/windows/win32/window.go b/v2/internal/frontend/desktop/windows/win32/window.go index 97c782f8..1d6c9438 100644 --- a/v2/internal/frontend/desktop/windows/win32/window.go +++ b/v2/internal/frontend/desktop/windows/win32/window.go @@ -13,7 +13,6 @@ import ( ) const ( - WS_MINIMIZE = 0x20000000 WS_MAXIMIZE = 0x01000000 WS_MINIMIZE = 0x20000000 @@ -143,11 +142,6 @@ func SetBackgroundColour(hwnd uintptr, r, g, b uint8) { setClassLongPtr(hwnd, GCLP_HBRBACKGROUND, hbrush) } -func IsWindowMinimised(hwnd uintptr) bool { - style := uint32(getWindowLong(hwnd, GWL_STYLE)) - return style&WS_MINIMIZE != 0 -} - func IsWindowNormal(hwnd uintptr) bool { return !IsWindowMaximised(hwnd) && !IsWindowMinimised(hwnd) && !IsWindowFullScreen(hwnd) }