forked from AuroraMiddleware/gtk
Allow x and y to be NULL in gdk_window_get_geometry
Fixes a crash reported in bug #593249
This commit is contained in:
parent
1932f32ef2
commit
858e6bcd65
@ -7368,8 +7368,10 @@ gdk_window_get_geometry (GdkWindow *window,
|
||||
parent = private->parent;
|
||||
if (parent && !gdk_window_has_impl (parent))
|
||||
{
|
||||
*x -= parent->abs_x;
|
||||
*y -= parent->abs_y;
|
||||
if (x)
|
||||
*x -= parent->abs_x;
|
||||
if (y)
|
||||
*y -= parent->abs_y;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user