diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2020-11-20 16:56:36 +0100 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2020-12-07 09:46:39 +0100 |
commit | 641915974be5113ab3bb16e1b5aa0be274d66608 (patch) | |
tree | 9373f93714ba5699b0aed9165b7e1e01ab032679 /gdk/broadway | |
parent | 528ec4ddedbf7600c9456e684e5fa82752d8ecf4 (diff) | |
download | gtk+-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.c | 4 |
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 |