mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 06:10:15 +00:00
x11: Don't crash when NULL eometry hints are set
Fixes crashers in gnome-panel.
This commit is contained in:
parent
a78643bd6f
commit
7f01641280
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user