[gtk+] wayland: Drop an unused function
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] wayland: Drop an unused function
- Date: Tue, 7 Nov 2017 12:44:37 +0000 (UTC)
commit 73a3d4b785205319013a79d8d509296bb2b1fd24
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Nov 7 07:43:09 2017 -0500
wayland: Drop an unused function
We no longer create a root window, so need to have
a function for it.
gdk/wayland/gdkprivate-wayland.h | 4 ---
gdk/wayland/gdkwindow-wayland.c | 42 --------------------------------------
2 files changed, 0 insertions(+), 46 deletions(-)
---
diff --git a/gdk/wayland/gdkprivate-wayland.h b/gdk/wayland/gdkprivate-wayland.h
index 98789d6..64ea4e0 100644
--- a/gdk/wayland/gdkprivate-wayland.h
+++ b/gdk/wayland/gdkprivate-wayland.h
@@ -195,10 +195,6 @@ GdkAppLaunchContext *_gdk_wayland_display_get_app_launch_context (GdkDisplay *di
GdkDisplay *_gdk_wayland_display_open (const gchar *display_name);
-GdkWindow *_gdk_wayland_display_create_root_window (GdkDisplay *display,
- int width,
- int height);
-
GList *gdk_wayland_display_get_toplevel_windows (GdkDisplay *display);
int gdk_wayland_display_get_output_refresh_rate (GdkWaylandDisplay *display_wayland,
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index 235c4e9..3231534 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -343,48 +343,6 @@ gdk_wayland_window_update_size (GdkWindow *window,
cairo_region_destroy (region);
}
-GdkWindow *
-_gdk_wayland_display_create_root_window (GdkDisplay *display,
- int width,
- int height)
-{
- GdkWaylandDisplay *display_wayland = GDK_WAYLAND_DISPLAY (display);
- GdkWindow *window;
- GdkWindowImplWayland *impl;
-
- window = _gdk_display_create_window (GDK_DISPLAY (display_wayland));
- window->impl = g_object_new (GDK_TYPE_WINDOW_IMPL_WAYLAND, NULL);
- window->impl_window = window;
-
- impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
-
- impl->wrapper = GDK_WINDOW (window);
- if (display_wayland->compositor_version >= WL_SURFACE_HAS_BUFFER_SCALE &&
- gdk_display_get_n_monitors (display) > 0)
- impl->scale = gdk_monitor_get_scale_factor (gdk_display_get_monitor (display, 0));
-
- /* logical 1x1 fake buffer */
- impl->staging_cairo_surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
- impl->scale,
- impl->scale);
-
- cairo_surface_set_device_scale (impl->staging_cairo_surface, impl->scale, impl->scale);
-
- window->window_type = GDK_WINDOW_ROOT;
-
- window->x = 0;
- window->y = 0;
- window->abs_x = 0;
- window->abs_y = 0;
- window->width = width;
- window->height = height;
- window->viewable = TRUE;
-
- window->event_mask = GDK_STRUCTURE_MASK;
-
- return window;
-}
-
static const gchar *
get_default_title (void)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]