Stop defaulting to the root window in gdk_window_get_geometry

This function is not documented as accepting NULL for the
window, and we don't want to have the root window sneakily
appear in the api like this.
This commit is contained in:
Matthias Clasen 2017-11-05 19:29:49 -05:00
parent 50cf11d398
commit de83fc48bf

View File

@ -4449,9 +4449,6 @@ gdk_window_get_geometry (GdkWindow *window,
GdkWindow *parent;
GdkWindowImplClass *impl_class;
if (!window)
window = gdk_display_get_root_window ((gdk_display_get_default ()));
g_return_if_fail (GDK_IS_WINDOW (window));
if (!GDK_WINDOW_DESTROYED (window))