summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-10-31 21:30:59 -0400
committerMatthias Clasen <mclasen@redhat.com>2017-10-31 21:30:59 -0400
commit67cea503832a5fa2ca4d8c891a2594027b33b77d (patch)
tree6e56131fe94873a9a9783e6f423f15184fd4d314
parent524fcbecfd4a858946f7c92d37a5a091ef87bf47 (diff)
downloadgtk+-67cea503832a5fa2ca4d8c891a2594027b33b77d.tar.gz
Drop gdk_get_default_root_window
This is a trivial convenience function, and it is barely used.
-rw-r--r--docs/reference/gdk/gdk4-sections.txt1
-rw-r--r--gdk/gdkwindow.c7
-rw-r--r--gdk/wayland/gdkdevice-wayland.c2
3 files changed, 1 insertions, 9 deletions
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt
index 564d7db6ae..532211eb49 100644
--- a/docs/reference/gdk/gdk4-sections.txt
+++ b/docs/reference/gdk/gdk4-sections.txt
@@ -391,7 +391,6 @@ gdk_window_get_decorations
GdkWMDecoration
gdk_window_set_functions
GdkWMFunction
-gdk_get_default_root_window
<SUBSECTION>
gdk_window_get_support_multidevice
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index b6d686f5b5..a1317b727a 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -3375,13 +3375,6 @@ gdk_window_get_device_position (GdkWindow *window,
return window;
}
-GdkWindow *
-gdk_get_default_root_window (void)
-{
- return gdk_display_get_root_window (gdk_display_get_default ());
-}
-
-
static gboolean
gdk_window_raise_internal (GdkWindow *window)
{
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index f31e07d033..575f948d82 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -592,7 +592,7 @@ gdk_wayland_device_query_state (GdkDevice *device,
GdkWaylandPointerData *pointer;
if (window == NULL)
- window = gdk_get_default_root_window ();
+ window = gdk_display_get_root_window (gdk_device_get_display (device));
pointer = GDK_WAYLAND_DEVICE (device)->pointer;