Jelajahi Sumber

Merge pull request #40105 from Logharaa/master

Stop looping as soon as the first window that has focus is found
Rémi Verschelde 5 tahun lalu
induk
melakukan
9828fcc01a
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      platform/linuxbsd/display_server_x11.cpp

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