[gtk: 29/88] gdk/surface: Make backends aware of when layout is requested
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 29/88] gdk/surface: Make backends aware of when layout is requested
- Date: Tue, 8 Dec 2020 15:38:41 +0000 (UTC)
commit 880ceebae41c8b2be646b8a70f4ca680a262da63
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Wed Dec 2 09:12:01 2020 +0100
gdk/surface: Make backends aware of when layout is requested
gdk/gdksurface.c | 5 +++++
gdk/gdksurfaceprivate.h | 1 +
2 files changed, 6 insertions(+)
---
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index 9f6bb03e24..a8f93170ec 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -1378,8 +1378,13 @@ gdk_surface_layout_on_clock (GdkFrameClock *clock,
void
gdk_surface_request_layout (GdkSurface *surface)
{
+ GdkSurfaceClass *class;
GdkFrameClock *frame_clock;
+ class = GDK_SURFACE_GET_CLASS (surface);
+ if (class->request_layout)
+ class->request_layout (surface);
+
if (surface->update_freeze_count ||
gdk_surface_is_toplevel_frozen (surface))
{
diff --git a/gdk/gdksurfaceprivate.h b/gdk/gdksurfaceprivate.h
index cc4e1a1a35..6a4a820faa 100644
--- a/gdk/gdksurfaceprivate.h
+++ b/gdk/gdksurfaceprivate.h
@@ -170,6 +170,7 @@ struct _GdkSurfaceClass
gboolean attached,
GdkGLContext *share,
GError **error);
+ void (* request_layout) (GdkSurface *surface);
void (* compute_size) (GdkSurface *surface);
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]