mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/uidriver/glfw: Bug fix: Do not hide the window after its creation
Closes #1829
This commit is contained in:
parent
b2e38894e0
commit
78cdb94552
@ -169,5 +169,9 @@ func initializeWindowAfterCreation(w *glfw.Window) {
|
||||
// Show the window once before getting the position of the window.
|
||||
// On Linux/Unix, the window position is not reliable before showing.
|
||||
w.Show()
|
||||
w.Hide()
|
||||
|
||||
// Hiding the window makes the position unreliable again. Do not call w.Hide() here (#1829)
|
||||
// Calling Hide is problematic especially on XWayland and/or Sway.
|
||||
// Apparently the window state is inconsistent just after the window is created, but we are not sure.
|
||||
// For more details, see the discussion in #1829.
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user