Browse Source

Break loop when the first focused window is found

Gaël 5 years ago
parent
commit
6c76639c40
1 changed files with 1 additions and 0 deletions
  1. 1 0
      platform/linuxbsd/display_server_x11.cpp

+ 1 - 0
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;
 			}
 		}