[gtk+] Stop defaulting to the root window in gdk_window_get_geometry



commit de83fc48bf510a82c7313723c03276c56b03b275
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Nov 5 19:29:49 2017 -0500

    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.

 gdk/gdkwindow.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index db2d851..729654d 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -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))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]