internal/ui: enable some functions even on fullsceen

This is thanks to a GLFW v3.3.8 change:
9950cc52df

Updates #1590
This commit is contained in:
Hajime Hoshi 2022-08-10 09:00:31 +09:00
parent a84a738360
commit d0fa68691c

View File

@ -45,10 +45,6 @@ func (w *glfwWindow) SetDecorated(decorated bool) {
} }
w.ui.t.Call(func() { w.ui.t.Call(func() {
if w.ui.isNativeFullscreen() {
return
}
w.ui.setWindowDecorated(decorated) w.ui.setWindowDecorated(decorated)
}) })
} }
@ -75,9 +71,6 @@ func (w *glfwWindow) SetResizingMode(mode WindowResizingMode) {
return return
} }
w.ui.t.Call(func() { w.ui.t.Call(func() {
if w.ui.isNativeFullscreen() {
return
}
w.ui.setWindowResizingMode(mode) w.ui.setWindowResizingMode(mode)
}) })
} }
@ -99,9 +92,6 @@ func (w *glfwWindow) SetFloating(floating bool) {
return return
} }
w.ui.t.Call(func() { w.ui.t.Call(func() {
if w.ui.isNativeFullscreen() {
return
}
w.ui.setWindowFloating(floating) w.ui.setWindowFloating(floating)
}) })
} }