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;
}
}