Break loop when the first focused window is found
This commit is contained in:
parent
0148a62d89
commit
6c76639c40
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue