Guard moveGeometryDisplayCentered against NULL gview
This commit is contained in:
parent
72377068fd
commit
f348b3a04b
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue