[client] wayland: fix fullscreen option launch bug

This commit is contained in:
Geoffrey McRae
2026-07-18 03:31:22 +10:00
parent acb5c06794
commit 47ade6395d
4 changed files with 33 additions and 7 deletions

View File

@@ -172,9 +172,16 @@ static bool waylandInit(const LG_DSInitParams params)
params.borderless, params.resizable))
return false;
if (!waylandEGLInit(params.w, params.h))
int width, height;
wlWm.desktop->getSize(&width, &height);
if (!waylandEGLInit(waylandScaleMulInt(wlWm.scale, width),
waylandScaleMulInt(wlWm.scale, height)))
return false;
app_handleResizeEvent(width, height, waylandScaleToDouble(wlWm.scale),
(struct Border) {0, 0, 0, 0});
waylandIconInit();
#ifdef ENABLE_OPENGL