[gtk: 40/88] gdk/wayland: Always compute-size if GTK asked fer layout
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 40/88] gdk/wayland: Always compute-size if GTK asked fer layout
- Date: Tue, 8 Dec 2020 15:38:41 +0000 (UTC)
commit e51c32b9c12d5fa197fd438edf404daefe21fad0
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Wed Dec 2 11:50:55 2020 +0100
gdk/wayland: Always compute-size if GTK asked fer layout
gdk/wayland/gdksurface-wayland.c | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c
index d01d7d4aa3..140774a65a 100644
--- a/gdk/wayland/gdksurface-wayland.c
+++ b/gdk/wayland/gdksurface-wayland.c
@@ -657,6 +657,14 @@ gdk_wayland_surface_compute_size (GdkSurface *surface)
}
}
+static void
+gdk_wayland_surface_request_layout (GdkSurface *surface)
+{
+ GdkWaylandSurface *impl = GDK_WAYLAND_SURFACE (surface);
+
+ impl->next_layout.surface_geometry_dirty = TRUE;
+}
+
void
gdk_wayland_surface_request_frame (GdkSurface *surface)
{
@@ -4158,6 +4166,7 @@ gdk_wayland_surface_class_init (GdkWaylandSurfaceClass *klass)
impl_class->set_opaque_region = gdk_wayland_surface_set_opaque_region;
impl_class->set_shadow_width = gdk_wayland_surface_set_shadow_width;
impl_class->create_gl_context = gdk_wayland_surface_create_gl_context;
+ impl_class->request_layout = gdk_wayland_surface_request_layout;
impl_class->compute_size = gdk_wayland_surface_compute_size;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]