Guard moveGeometryDisplayCentered against NULL gview

This commit is contained in:
Levi Neely 2026-05-13 20:01:13 +02:00
parent 72377068fd
commit f348b3a04b
1 changed files with 1 additions and 0 deletions

View File

@ -90,6 +90,7 @@ static Bool checkMouseSamplingRate(WMEvent * ev)
*/
static void moveGeometryDisplayCentered(WScreen * scr, int x, int y)
{
if (!scr->gview) return;
unsigned int w = WMWidgetWidth(scr->gview);
unsigned int h = WMWidgetHeight(scr->gview);
int x1 = 0, y1 = 0, x2 = scr->scr_width, y2 = scr->scr_height;