forked from AuroraMiddleware/gtk
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:
parent
50cf11d398
commit
de83fc48bf
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user