Merge pull request #110895 from Giganzo/input-focus

Add setting for when to show the focus state for mouse input
This commit is contained in:
Thaddeus Crews
2025-10-21 19:09:25 -05:00
6 changed files with 12 additions and 8 deletions

View File

@@ -534,7 +534,7 @@ void Viewport::_update_viewport_path() {
}
bool Viewport::_can_hide_focus_state() {
return Engine::get_singleton()->is_editor_hint() || !GLOBAL_GET_CACHED(bool, "gui/common/always_show_focus_state");
return Engine::get_singleton()->is_editor_hint() || GLOBAL_GET_CACHED(int, "gui/common/show_focus_state_on_pointer_event") < 2;
}
void Viewport::_on_settings_changed() {