From b82427d412b64c902c024392e3807c5ee28ca678 Mon Sep 17 00:00:00 2001 From: Inkeliz Date: Sun, 6 Mar 2022 02:58:56 +0000 Subject: [PATCH] app: [windows] fix maximized window size Previously, the window size is equal to the screen size. That doesn't consider the size of the taskbar, causing the height be bigger than the real height. Now, the maximized have the same behavior of windowed, since both of them must include decorations and taskbar. Signed-off-by: Inkeliz --- app/os_windows.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/os_windows.go b/app/os_windows.go index c09413b9..9dd9b1c2 100644 --- a/app/os_windows.go +++ b/app/os_windows.go @@ -207,8 +207,6 @@ func (w *window) update() { mode = Minimized } else if p.IsMaximized() { mode = Maximized - mi := windows.GetMonitorInfo(w.hwnd).Monitor - size = image.Point{X: int(mi.Right - mi.Left), Y: int(mi.Bottom - mi.Top)} } else { mode = Windowed }