From f7aec64e6f8af8459bd1f46461ced28abe05bd77 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 1 Mar 2020 12:31:26 -0500 Subject: [PATCH] wayland: Stop using gdk_surface_set_title Directly call the backend function for this, and for gdk_surface_set_transient_for. --- gdk/wayland/gdksurface-wayland.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c index c387548e6d..20ab195a4a 100644 --- a/gdk/wayland/gdksurface-wayland.c +++ b/gdk/wayland/gdksurface-wayland.c @@ -591,6 +591,8 @@ gdk_wayland_surface_update_scale (GdkSurface *surface) } static void gdk_wayland_surface_create_surface (GdkSurface *surface); +static void gdk_wayland_surface_set_title (GdkSurface *surface, + const char *title); GdkSurface * _gdk_wayland_display_create_surface (GdkDisplay *display, @@ -643,7 +645,7 @@ _gdk_wayland_display_create_surface (GdkDisplay *display, gdk_display_get_n_monitors (display) > 0) impl->scale = gdk_monitor_get_scale_factor (gdk_display_get_monitor (display, 0)); - gdk_surface_set_title (surface, get_default_title ()); + gdk_wayland_surface_set_title (surface, get_default_title ()); if (parent == NULL) display_wayland->toplevels = g_list_prepend (display_wayland->toplevels, surface); @@ -4268,7 +4270,7 @@ gdk_wayland_surface_set_transient_for_exported (GdkSurface *surface, return FALSE; } - gdk_surface_set_transient_for (surface, NULL); + gdk_wayland_surface_set_transient_for (surface, NULL); impl->imported_transient_for = zxdg_importer_v1_import (display_wayland->xdg_importer, parent_handle_str);