diff --git a/platform/linuxbsd/display_server_x11.cpp b/platform/linuxbsd/display_server_x11.cpp index 827d0361b96..64cecfb7982 100644 --- a/platform/linuxbsd/display_server_x11.cpp +++ b/platform/linuxbsd/display_server_x11.cpp @@ -2345,6 +2345,7 @@ void DisplayServerX11::process_events() { for (Map::Element *E = windows.front(); E; E = E->next()) { if (E->get().focused) { focus_found = true; + break; } }