diff --git a/client/SDL/SDL3/dialogs/sdl_connection_dialog.cpp b/client/SDL/SDL3/dialogs/sdl_connection_dialog.cpp index a8abd01d0..cedb12867 100644 --- a/client/SDL/SDL3/dialogs/sdl_connection_dialog.cpp +++ b/client/SDL/SDL3/dialogs/sdl_connection_dialog.cpp @@ -147,7 +147,8 @@ bool SDLConnectionDialog::setModal() return true; auto parent = sdl->windows.begin()->second.window(); - SDL_SetWindowModalFor(_window, parent); + SDL_SetWindowParent(_window, parent); + SDL_SetWindowModal(_window, SDL_TRUE); SDL_RaiseWindow(_window); } return true; diff --git a/client/SDL/SDL3/sdl_freerdp.cpp b/client/SDL/SDL3/sdl_freerdp.cpp index 69a7755ce..016a92be3 100644 --- a/client/SDL/SDL3/sdl_freerdp.cpp +++ b/client/SDL/SDL3/sdl_freerdp.cpp @@ -1481,8 +1481,8 @@ static const char* category2str(int category) return "SDL_LOG_CATEGORY_INPUT"; case SDL_LOG_CATEGORY_TEST: return "SDL_LOG_CATEGORY_TEST"; - case SDL_LOG_CATEGORY_RESERVED1: - return "SDL_LOG_CATEGORY_RESERVED1"; + case SDL_LOG_CATEGORY_GPU: + return "SDL_LOG_CATEGORY_GPU"; case SDL_LOG_CATEGORY_RESERVED2: return "SDL_LOG_CATEGORY_RESERVED2"; case SDL_LOG_CATEGORY_RESERVED3: diff --git a/client/SDL/SDL3/sdl_touch.cpp b/client/SDL/SDL3/sdl_touch.cpp index 94b04e319..13068a19e 100644 --- a/client/SDL/SDL3/sdl_touch.cpp +++ b/client/SDL/SDL3/sdl_touch.cpp @@ -241,7 +241,7 @@ BOOL sdl_handle_mouse_button(SdlContext* sdl, const SDL_MouseButtonEvent* ev) WINPR_ASSERT(sdl); WINPR_ASSERT(ev); - if (ev->state == SDL_PRESSED) + if (ev->type == SDL_EVENT_MOUSE_BUTTON_DOWN) { flags |= PTR_FLAGS_DOWN; xflags |= PTR_XFLAGS_DOWN;