diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-02-01 10:51:03 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-02-01 11:10:10 +0200 |
commit | 9f426498231816ccb9d686b3944373f61312aa24 (patch) | |
tree | 18c21d5bb165f34393a36c617e013e18187a44b3 /scene | |
parent | 394bb0ee2bcd863aed75e1c6799c4c8138dbf269 (diff) |
[X11] Fix IME subwindow in the popup not getting input focus.
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/popup_menu.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/gui/popup_menu.cpp b/scene/gui/popup_menu.cpp index ddc11d97b9..0eeac2f285 100644 --- a/scene/gui/popup_menu.cpp +++ b/scene/gui/popup_menu.cpp @@ -840,6 +840,9 @@ void PopupMenu::_notification(int p_what) { float pm_delay = pm->get_submenu_popup_delay(); set_submenu_popup_delay(pm_delay); } + if (!is_embedded()) { + set_flag(FLAG_NO_FOCUS, true); + } } break; case NOTIFICATION_THEME_CHANGED: |