1
0
Fork 0

Move windows into foreground when selected

This commit is contained in:
under 2024-03-20 13:29:18 -07:00
parent cc629bfc42
commit b83bd2074a
1 changed files with 1 additions and 0 deletions

View File

@ -12,6 +12,7 @@ func _input(event: InputEvent):
if event.pressed: if event.pressed:
if get_global_rect().has_point(get_global_mouse_position()): if get_global_rect().has_point(get_global_mouse_position()):
desktop.current_window = self desktop.current_window = self
get_parent().move_child(self, get_parent().get_child_count())
elif event is InputEventKey: elif event is InputEventKey:
if event.keycode == KEY_F11: if event.keycode == KEY_F11:
if event.pressed: if event.pressed: