From ec57d482f2d20d125def084d9fd982a2236df2b0 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 17 Nov 2024 23:26:09 +0900 Subject: [PATCH] internal/ui: bug fix: compilation error Closes #3118 Closes #3162 --- internal/ui/ui_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/ui/ui_windows.go b/internal/ui/ui_windows.go index 21cec9c65355..03a800d9ffea 100644 --- a/internal/ui/ui_windows.go +++ b/internal/ui/ui_windows.go @@ -118,10 +118,10 @@ func (u *UserInterface) adjustWindowPosition(x, y int, monitor *Monitor) (int, i // If a window is not decorated, the window should be able to reach the top of the screen (#3118). d, err := u.window.GetAttrib(glfw.Decorated) if err != nil { - return 0, 0, err + panic(err) } if d == glfw.False { - return x, y, nil + return x, y } mx := monitor.boundsInGLFWPixels.Min.X