[client] add support for masked colour cursors (fixes #61)

Also allows early SDL usage for cursor and keyboard control before
the host application starts
This commit is contained in:
Geoffrey McRae
2018-05-28 11:39:19 +10:00
parent 871aee2aae
commit 882b31aeaa
2 changed files with 29 additions and 6 deletions

View File

@@ -899,7 +899,19 @@ int run()
DEBUG_INFO("Waiting for host to signal it's ready...");
__sync_or_and_fetch(&state.shm->flags, KVMFR_HEADER_FLAG_RESTART);
while(state.running && (state.shm->flags & KVMFR_HEADER_FLAG_RESTART))
{
SDL_Event event;
while(SDL_PollEvent(&event))
{
if (event.type == SDL_QUIT)
{
if (!params.ignoreQuit)
state.running = false;
break;
}
}
usleep(1000);
}
DEBUG_INFO("Host ready, starting session");
// check the header's magic and version are valid