From 6c76639c40c95eff25e4bb85ebe7efbfa89697b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl?= <38374449+Logharaa@users.noreply.github.com> Date: Sat, 4 Jul 2020 00:07:26 +0200 Subject: [PATCH] Break loop when the first focused window is found --- platform/linuxbsd/display_server_x11.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/linuxbsd/display_server_x11.cpp b/platform/linuxbsd/display_server_x11.cpp index 827d0361b96..64cecfb7982 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::Element *E = windows.front(); E; E = E->next()) { if (E->get().focused) { focus_found = true; + break; } }