[client] update window dimensions when the spice client is disabled

This commit is contained in:
Geoffrey McRae 2017-12-14 20:09:48 +11:00
parent 3fa9f371b4
commit 2ae9b479f6

View File

@ -378,10 +378,27 @@ int eventThread(void * arg)
continue; continue;
} }
if (event.type == SDL_QUIT) switch(event.type)
{ {
case SDL_QUIT:
state.running = false; state.running = false;
break; break;
case SDL_WINDOWEVENT:
{
switch(event.window.event)
{
case SDL_WINDOWEVENT_ENTER:
realignGuest = true;
break;
case SDL_WINDOWEVENT_SIZE_CHANGED:
updatePositionInfo();
realignGuest = true;
break;
}
break;
}
} }
if (!params.useSpice) if (!params.useSpice)
@ -530,22 +547,6 @@ int eventThread(void * arg)
} }
break; break;
case SDL_WINDOWEVENT:
{
switch(event.window.event)
{
case SDL_WINDOWEVENT_ENTER:
realignGuest = true;
break;
case SDL_WINDOWEVENT_SIZE_CHANGED:
updatePositionInfo();
realignGuest = true;
break;
}
break;
}
default: default:
break; break;
} }