[gtk/matthiasc/for-master: 2/6] wayland: Stop using gdk_surface_new_temp
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 2/6] wayland: Stop using gdk_surface_new_temp
- Date: Thu, 8 Oct 2020 01:22:30 +0000 (UTC)
commit e602d67e59364ec6cba82c5c337f15846fe8a8ea
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Oct 7 20:12:35 2020 -0400
wayland: Stop using gdk_surface_new_temp
No need to roundtrip through the frontend to create
one of our own surfaces.
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 72cbc8c2d7..4a54185dcc 100644
--- a/gdk/wayland/gdksurface-wayland.c
+++ b/gdk/wayland/gdksurface-wayland.c
@@ -4457,8 +4457,10 @@ create_dnd_surface (GdkDisplay *display)
{
GdkSurface *surface;
- surface = gdk_surface_new_temp (display, &(GdkRectangle){ 0, 0, 100, 100 });
-
+ surface = _gdk_wayland_display_create_surface (display,
+ GDK_SURFACE_TEMP,
+ NULL,
+ 0, 0, 100, 100);
GDK_WAYLAND_SURFACE (surface)->is_drag_surface = TRUE;
return surface;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]