From 30cfa2607d6954a958efca3f69a1d297e9520238 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 19 May 2019 17:43:46 -0700 Subject: [PATCH] Hide mouse cursor after streaming on Steam Link --- app/streaming/input.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/streaming/input.cpp b/app/streaming/input.cpp index 7f2c2cef..fbd20aeb 100644 --- a/app/streaming/input.cpp +++ b/app/streaming/input.cpp @@ -162,6 +162,14 @@ SdlInputHandler::~SdlInputHandler() // Return background event handling to off SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "0"); + +#ifdef STEAM_LINK + // Hide SDL's cursor on Steam Link after quitting the stream. + // FIXME: We should also do this for other situations where SDL + // and Qt will draw their own mouse cursors like KMSDRM or RPi + // video backends. + SDL_ShowCursor(SDL_DISABLE); +#endif } void SdlInputHandler::handleKeyEvent(SDL_KeyboardEvent* event)