Merge pull request #40105 from Logharaa/master

Stop looping as soon as the first window that has focus is found
This commit is contained in:
Rémi Verschelde 2020-07-04 09:57:14 +02:00 committed by GitHub
commit 9828fcc01a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2364,6 +2364,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;
}
}