diff --git a/client/main.c b/client/main.c index 104194a7..028bd6c1 100644 --- a/client/main.c +++ b/client/main.c @@ -862,6 +862,9 @@ int run() if (!params.center) SDL_SetWindowPosition(state.window, params.x, params.y); + // ensure the initial window size is stored in the state + SDL_GetWindowSize(state.window, &state.windowW, &state.windowH); + // set the compositor hint to bypass for low latency SDL_SysWMinfo wminfo; SDL_VERSION(&wminfo.version);