diff options
author | Gaël <38374449+Logharaa@users.noreply.github.com> | 2020-07-04 00:07:26 +0200 |
---|---|---|
committer | Gaël Meheust <gael.meheust@etudiant.univ-rennes1.fr> | 2020-07-04 01:57:16 +0200 |
commit | 6c76639c40c95eff25e4bb85ebe7efbfa89697b4 (patch) | |
tree | 63d7b58f11392e5375f637f150cf08450c5f697c | |
parent | 0148a62d890e0d559bec86fcac14404c81742899 (diff) |
Break loop when the first focused window 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 827d0361b9..64cecfb798 100644 --- a/platform/linuxbsd/display_server_x11.cpp +++ b/platform/linuxbsd/display_server_x11.cpp @@ -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; } } |