[client] mouse warp has to be set before the mouse mode is set to take effect at launch

This commit is contained in:
Geoffrey McRae 2017-10-27 06:38:48 +11:00
parent 54df567b84
commit e71f2274e4

View File

@ -385,14 +385,14 @@ int eventThread(void * arg)
int mouseX = 0; int mouseX = 0;
int mouseY = 0; int mouseY = 0;
// ensure mouse acceleration is identical in server mode
SDL_SetHintWithPriority(SDL_HINT_MOUSE_RELATIVE_MODE_WARP, "1", SDL_HINT_OVERRIDE);
// default to server mode // default to server mode
bool serverMode = true; bool serverMode = true;
spice_mouse_mode(true); spice_mouse_mode(true);
SDL_SetRelativeMouseMode(true); SDL_SetRelativeMouseMode(true);
// ensure mouse acceleration is identical in server mode
SDL_SetHintWithPriority(SDL_HINT_MOUSE_RELATIVE_MODE_WARP, "1", SDL_HINT_OVERRIDE);
SDL_Event event; SDL_Event event;
while(state.running) while(state.running)
{ {