[gtk/present-toplevel: 3/54] wayland: Stop calling frontend surface api
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel: 3/54] wayland: Stop calling frontend surface api
- Date: Sun, 1 Mar 2020 19:33:57 +0000 (UTC)
commit 0b73150a5b88aa7e867997b4e3eb72a8d86e21e6
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Feb 29 09:51:26 2020 -0500
wayland: Stop calling frontend surface api
This is an unnecessary vfunc roundtrip, and the
frontend api is going away shortly.
gdk/wayland/gdksurface-wayland.c | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c
index e50c39991a..526b07f567 100644
--- a/gdk/wayland/gdksurface-wayland.c
+++ b/gdk/wayland/gdksurface-wayland.c
@@ -2634,6 +2634,11 @@ is_fallback_relayout_possible (GdkSurface *surface)
return TRUE;
}
+static gboolean gdk_wayland_surface_present_popup (GdkSurface *surface,
+ int width,
+ int height,
+ GdkPopupLayout *layout);
+
static void
queue_relayout_fallback (GdkSurface *surface,
GdkPopupLayout *layout)
@@ -2644,10 +2649,10 @@ queue_relayout_fallback (GdkSurface *surface,
return;
gdk_wayland_surface_hide_surface (surface);
- gdk_surface_present_popup (surface,
- impl->popup.unconstrained_width,
- impl->popup.unconstrained_height,
- layout);
+ gdk_wayland_surface_present_popup (surface,
+ impl->popup.unconstrained_width,
+ impl->popup.unconstrained_height,
+ layout);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]