소스 검색

Merge pull request #101819 from Riteo/wl-embarassingly-easy

Wayland: Release pressed events on application focus out
Thaddeus Crews 8 달 전
부모
커밋
e062cd254d
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      platform/linuxbsd/wayland/display_server_wayland.cpp

+ 1 - 0
platform/linuxbsd/wayland/display_server_wayland.cpp

@@ -1174,6 +1174,7 @@ void DisplayServerWayland::process_events() {
 				if (OS::get_singleton()->get_main_loop()) {
 					OS::get_singleton()->get_main_loop()->notification(MainLoop::NOTIFICATION_APPLICATION_FOCUS_OUT);
 				}
+				Input::get_singleton()->release_pressed_events();
 			}
 		}