Fix NULL gview crash: create geometry view in Wayland screen path

The Wayland screen init path had 'goto screen_done' which skipped
gview creation. Now creates it before the goto. Also added safety
guard in moveGeometryDisplayCentered.
This commit is contained in:
Levi Neely 2026-05-13 20:05:17 +02:00
parent f348b3a04b
commit 3a0ca5444e
1 changed files with 4 additions and 0 deletions

View File

@ -201,6 +201,10 @@ WScreen *wScreenInit(int screen_number)
wWorkspaceNew(scr);
wm_backend->screen_create_pixmaps(scr);
scr->gview = WCreateGeometryView(scr->wmscreen);
if (scr->gview)
WMRealizeWidget(scr->gview);
goto screen_done;
}