mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
parent
3aaeee78dd
commit
92e056c508
@ -23,6 +23,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"image"
|
"image"
|
||||||
"math"
|
"math"
|
||||||
|
"os"
|
||||||
"runtime"
|
"runtime"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
@ -608,7 +609,9 @@ func (u *UserInterface) run(width, height int, scale float64, title string, cont
|
|||||||
glfw.WindowHint(glfw.Resizable, resizable)
|
glfw.WindowHint(glfw.Resizable, resizable)
|
||||||
|
|
||||||
// Set the window visible explicitly or the application freezes on Wayland (#974).
|
// Set the window visible explicitly or the application freezes on Wayland (#974).
|
||||||
glfw.WindowHint(glfw.Visible, glfw.True)
|
if os.Getenv("WAYLAND_DISPLAY") != "" {
|
||||||
|
glfw.WindowHint(glfw.Visible, glfw.True)
|
||||||
|
}
|
||||||
|
|
||||||
// As a start, create a window with temporary size to create OpenGL context thread.
|
// As a start, create a window with temporary size to create OpenGL context thread.
|
||||||
window, err := glfw.CreateWindow(16, 16, "", nil, nil)
|
window, err := glfw.CreateWindow(16, 16, "", nil, nil)
|
||||||
|
Loading…
Reference in New Issue
Block a user