浏览代码

Break loop when the first focused window is found

Gaël 5 年之前
父节点
当前提交
6c76639c40
共有 1 个文件被更改,包括 1 次插入0 次删除
  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;
 			}
 		}