summaryrefslogtreecommitdiff
path: root/gdk/broadway
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2020-11-20 16:56:36 +0100
committerJonas Ådahl <jadahl@gmail.com>2020-12-07 09:46:39 +0100
commit641915974be5113ab3bb16e1b5aa0be274d66608 (patch)
tree9373f93714ba5699b0aed9165b7e1e01ab032679 /gdk/broadway
parent528ec4ddedbf7600c9456e684e5fa82752d8ecf4 (diff)
downloadgtk+-641915974be5113ab3bb16e1b5aa0be274d66608.tar.gz
gdk/toplevel: Make gdk_toplevel_present() async
The plan is to concencrate size computations as part of the frame clock dispatch, meaning we shouldn't do it synchronously in the present() function. Still, in Wayland, and maybe elsewhere, it is done in the present() function, e.g. when no state change was made, but this will eventually be changed.
Diffstat (limited to 'gdk/broadway')
-rw-r--r--gdk/broadway/gdksurface-broadway.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdk/broadway/gdksurface-broadway.c b/gdk/broadway/gdksurface-broadway.c
index d9e45ad077..bc5f3eb6c9 100644
--- a/gdk/broadway/gdksurface-broadway.c
+++ b/gdk/broadway/gdksurface-broadway.c
@@ -1524,7 +1524,7 @@ show_surface (GdkSurface *surface)
gdk_surface_invalidate_rect (surface, NULL);
}
-static gboolean
+static void
gdk_broadway_toplevel_present (GdkToplevel *toplevel,
GdkToplevelLayout *layout)
{
@@ -1583,8 +1583,6 @@ gdk_broadway_toplevel_present (GdkToplevel *toplevel,
gdk_broadway_surface_unmaximize (surface);
show_surface (surface);
-
- return TRUE;
}
static gboolean