From de915efaafc0011b57140432094c4c5fb8a52b8c Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 13 Dec 2016 20:23:32 -0800 Subject: [PATCH] Wiggle the mouse at connection start to wake the display up --- src/Connection.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Connection.c b/src/Connection.c index 6efe357..7e966df 100644 --- a/src/Connection.c +++ b/src/Connection.c @@ -361,6 +361,12 @@ int LiStartConnection(PSERVER_INFORMATION serverInfo, PSTREAM_CONFIGURATION stre LC_ASSERT(stage == STAGE_INPUT_STREAM_START); ListenerCallbacks.stageComplete(STAGE_INPUT_STREAM_START); Limelog("done\n"); + + // Wiggle the mouse a bit to wake the display up + LiSendMouseMoveEvent(1, 1); + PltSleepMs(10); + LiSendMouseMoveEvent(-1, -1); + PltSleepMs(10); ListenerCallbacks.connectionStarted();