works on windows too now

This commit is contained in:
Tabby 2025-06-01 16:22:34 +10:00
parent 46c7700f67
commit a199a4fbf0

View file

@ -19,10 +19,10 @@ func _process(_delta):
#OS.set_window_position(OS.window_position + get_global_mouse_position() - dragging_start_position)
#if (Input.is_action_just_pressed("ui_up")):
#get_window().size += Vector2i(100,90)
print(DisplayServer.window_get_mode())
#print(DisplayServer.window_get_mode())
if(DisplayServer.window_get_mode() == 1): #prevent program from being minimised
#print("T_T")
#DisplayServer.window_set_mode(0)
DisplayServer.window_set_mode(0)
#get_window().request_attention()
get_window().grab_focus()