[client,sdl3] update to new API

This commit is contained in:
akallabeth 2024-09-10 12:43:34 +02:00
parent 215f798665
commit 2a641aa834
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5
3 changed files with 5 additions and 4 deletions

View File

@ -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;

View File

@ -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:

View File

@ -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;