diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-07-04 09:57:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-04 09:57:14 +0200 |
commit | 9828fcc01abf841d840bc262155a3e2e420ac072 (patch) | |
tree | a11f20ec2d037f755a27b50212ada4c72915ae57 | |
parent | a5b061e1b8990d895679261e7b8946104c48de3b (diff) | |
parent | 6c76639c40c95eff25e4bb85ebe7efbfa89697b4 (diff) |
Merge pull request #40105 from Logharaa/master
Stop looping as soon as the first window that has focus is found
-rw-r--r-- | platform/linuxbsd/display_server_x11.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/linuxbsd/display_server_x11.cpp b/platform/linuxbsd/display_server_x11.cpp index dc14580d92..c9b951f4d9 100644 --- a/platform/linuxbsd/display_server_x11.cpp +++ b/platform/linuxbsd/display_server_x11.cpp @@ -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; } } |