[gtk+] Drop gdk_get_default_root_window
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Drop gdk_get_default_root_window
- Date: Wed, 1 Nov 2017 01:31:58 +0000 (UTC)
commit 67cea503832a5fa2ca4d8c891a2594027b33b77d
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Oct 31 21:30:59 2017 -0400
Drop gdk_get_default_root_window
This is a trivial convenience function, and it is barely used.
docs/reference/gdk/gdk4-sections.txt | 1 -
gdk/gdkwindow.c | 7 -------
gdk/wayland/gdkdevice-wayland.c | 2 +-
3 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt
index 564d7db..532211e 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 b6d686f..a1317b7 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 f31e07d..575f948 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]