[fix] process mouse events only from the stream window

This commit is contained in:
dijunkun
2026-03-11 16:00:29 +08:00
parent 91bde91238
commit 499ce0190a

View File

@@ -2335,7 +2335,8 @@ void Render::ProcessSdlEvent(const SDL_Event& event) {
case SDL_EVENT_MOUSE_BUTTON_DOWN:
case SDL_EVENT_MOUSE_BUTTON_UP:
case SDL_EVENT_MOUSE_WHEEL:
if (focus_on_stream_window_) {
if (focus_on_stream_window_ && stream_window_ &&
SDL_GetWindowID(stream_window_) == event.motion.windowID) {
ProcessMouseEvent(event);
}
break;