I've created a project with my own control buttons for Minimize, Fullscreen, and Close. If I run the project WITH the Borderless setting to Off/false, the Minimize and Fullscreen buttons work as expected. But when I run the project WITH the Borderless setting to On/true, these same buttons no longer work.
This problem exists when running the project from Godot as well as when running as an exported app. I had a friend try running it on his Windows machine and it worked fine, so it seems to be an OSX issue.
The signals are still calling the functions correctly. The print() statements are still appearing in the console. I get the same results whether setting the Borderless value in Project Settings or via GDScript.
Function code:
func _on_MinimizeButton_pressed() -> void:
print("_on_MinimizeButton_pressed") #this prints normally in both borderless on and off
print(OS.is_window_minimized()) #this prints normally in both borderless on and off
OS.set_window_minimized(true)
OS.set_window_minimized(!OS.is_window_minimized())
func _on_FullscreenButton_pressed() -> void:
print("_on_FullscreenButton_pressed") #this prints normally in both borderless on and off
print(OS.is_window_fullscreen()) #this prints normally in both borderless on and off
OS.set_window_fullscreen(!OS.is_window_fullscreen())
I also tried doing it by setting the OS methods literally:
func _on_MinimizeButton_pressed() -> void:
# ... #
OS.set_window_minimized(true)
# ... #
func _on_FullscreenButton_pressed() -> void:
# ... #
OS.set_window_fullscreen(true)
# ... #
Has anyone else come across this problem?