summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaël <38374449+Logharaa@users.noreply.github.com>2020-07-04 00:07:26 +0200
committerGaël Meheust <gael.meheust@etudiant.univ-rennes1.fr>2020-07-04 01:57:16 +0200
commit6c76639c40c95eff25e4bb85ebe7efbfa89697b4 (patch)
tree63d7b58f11392e5375f637f150cf08450c5f697c
parent0148a62d890e0d559bec86fcac14404c81742899 (diff)
Break loop when the first focused window is found
-rw-r--r--platform/linuxbsd/display_server_x11.cpp1
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;
}
}