mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-23 20:30:15 +00:00
broadway: Handle NULL surface in update
This happen if nothing has been drawn yet.
This commit is contained in:
parent
e00bc73de8
commit
ec45d2f8c7
@ -598,6 +598,9 @@ _gdk_broadway_server_window_update (GdkBroadwayServer *server,
|
||||
BroadwayRequestUpdate msg;
|
||||
BroadwayShmSurfaceData *data;
|
||||
|
||||
if (surface == NULL)
|
||||
return;
|
||||
|
||||
data = cairo_surface_get_user_data (surface, &gdk_broadway_shm_cairo_key);
|
||||
g_assert (data != NULL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user