x11: Don't crash when NULL eometry hints are set

Fixes crashers in gnome-panel.
This commit is contained in:
Benjamin Otte 2013-07-31 03:02:08 +02:00
parent a78643bd6f
commit 7f01641280

View File

@ -2478,7 +2478,8 @@ gdk_x11_window_set_geometry_hints (GdkWindow *window,
toplevel = _gdk_x11_window_get_toplevel (window);
if (toplevel)
{
toplevel->last_geometry_hints = *geometry;
if (geometry)
toplevel->last_geometry_hints = *geometry;
toplevel->last_geometry_hints_mask = geom_mask;
}