works on windows too now
This commit is contained in:
parent
46c7700f67
commit
a199a4fbf0
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue