You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Break loop when the first focused window is found
This commit is contained in:
@@ -2345,6 +2345,7 @@ void DisplayServerX11::process_events() {
|
|||||||
for (Map<WindowID, WindowData>::Element *E = windows.front(); E; E = E->next()) {
|
for (Map<WindowID, WindowData>::Element *E = windows.front(); E; E = E->next()) {
|
||||||
if (E->get().focused) {
|
if (E->get().focused) {
|
||||||
focus_found = true;
|
focus_found = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user