1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Break loop when the first focused window is found

This commit is contained in:
Gaël
2020-07-04 00:07:26 +02:00
committed by Gaël Meheust
parent 0148a62d89
commit 6c76639c40

View File

@@ -2345,6 +2345,7 @@ void DisplayServerX11::process_events() {
for (Map<WindowID, WindowData>::Element *E = windows.front(); E; E = E->next()) {
if (E->get().focused) {
focus_found = true;
break;
}
}