resizer: only branch when non-NULL

My previous commit broke this, which is needed because we always return
FALSE when either are NULL.
This commit is contained in:
Christian Hergert 2023-05-17 13:37:33 -07:00
parent 69dfaddb9d
commit cae805a728

View File

@ -140,7 +140,7 @@ on_screen_configure_cb (GObject *object,
self->in_progress = FALSE; self->in_progress = FALSE;
attributes = g_steal_pointer (&self->next_op); attributes = g_steal_pointer (&self->next_op);
if (!mks_screen_attributes_equal (attributes, self->previous_op)) if (attributes && !mks_screen_attributes_equal (attributes, self->previous_op))
mks_screen_resizer_reconfigure (self, g_steal_pointer (&attributes)); mks_screen_resizer_reconfigure (self, g_steal_pointer (&attributes));
MKS_EXIT; MKS_EXIT;