Skip to content

Commit

Permalink
internal/ui: bug fix: compilation error
Browse files Browse the repository at this point in the history
Closes #3118
Closes #3162
  • Loading branch information
hajimehoshi committed Nov 17, 2024
1 parent 53090f3 commit ec57d48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/ui/ui_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ec57d48

Please sign in to comment.