mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
internal/uidriver/glfw: Do not iconify the fullscreen window on Linux
Updates #1506
This commit is contained in:
parent
9c321d1fcf
commit
2a390c18c1
@ -79,6 +79,7 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
AutoIconify = Hint(0x00020006)
|
||||||
ClientAPI = Hint(0x00022001)
|
ClientAPI = Hint(0x00022001)
|
||||||
ContextVersionMajor = Hint(0x00022002)
|
ContextVersionMajor = Hint(0x00022002)
|
||||||
ContextVersionMinor = Hint(0x00022003)
|
ContextVersionMinor = Hint(0x00022003)
|
||||||
|
@ -849,6 +849,13 @@ func (u *UserInterface) init() error {
|
|||||||
glfw.WindowHint(glfw.ClientAPI, glfw.NoAPI)
|
glfw.WindowHint(glfw.ClientAPI, glfw.NoAPI)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Enable auto-iconifying on Windows and macOS until some fullscreen issues are solved (#1506).
|
||||||
|
if runtime.GOOS == "windows" || runtime.GOOS == "darwin" {
|
||||||
|
glfw.WindowHint(glfw.AutoIconify, glfw.True)
|
||||||
|
} else {
|
||||||
|
glfw.WindowHint(glfw.AutoIconify, glfw.False)
|
||||||
|
}
|
||||||
|
|
||||||
decorated := glfw.False
|
decorated := glfw.False
|
||||||
if u.isInitWindowDecorated() {
|
if u.isInitWindowDecorated() {
|
||||||
decorated = glfw.True
|
decorated = glfw.True
|
||||||
|
Loading…
Reference in New Issue
Block a user