[client,sdl] handle render events in SdlContext

This commit is contained in:
Armin Novak
2026-01-27 14:05:34 +01:00
committed by akallabeth
parent 03c350950a
commit 197ac808fd
2 changed files with 4 additions and 10 deletions

View File

@@ -1107,7 +1107,10 @@ bool SdlContext::handleEvent(const SDL_Event& ev)
const auto& cev = ev.key;
return getInputChannelContext().handleEvent(cev);
}
break;
case SDL_EVENT_RENDER_TARGETS_RESET:
case SDL_EVENT_RENDER_DEVICE_RESET:
case SDL_EVENT_WILL_ENTER_FOREGROUND:
return redraw();
default:
return true;
}

View File

@@ -115,15 +115,6 @@ static void sdl_term_handler([[maybe_unused]] int signum, [[maybe_unused]] const
case SDL_EVENT_QUIT:
freerdp_abort_connect_context(sdl->context());
break;
case SDL_EVENT_RENDER_TARGETS_RESET:
std::ignore = sdl->redraw();
break;
case SDL_EVENT_RENDER_DEVICE_RESET:
std::ignore = sdl->redraw();
break;
case SDL_EVENT_WILL_ENTER_FOREGROUND:
std::ignore = sdl->redraw();
break;
case SDL_EVENT_USER_CERT_DIALOG:
{
SDLConnectionDialogHider hider(sdl);