1
0
Fork 0

onscreen/native: Set frame result to IDLE on swap failure

So that swap failure messages are not also followed by:

meta_stage_native_redraw_view: runtime check failed: (!META_IS_CRTC_KMS (crtc))

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3817>
This commit is contained in:
Daniel van Vugt 2024-07-02 17:13:07 +08:00 committed by Marge Bot
parent 0de83166db
commit 45a97a5e3f

View file

@ -1484,6 +1484,7 @@ meta_onscreen_native_swap_buffers_with_damage (CoglOnscreen *onscreen,
swap_failed:
frame_info->flags |= COGL_FRAME_INFO_FLAG_SYMBOLIC;
meta_onscreen_native_notify_frame_complete (onscreen);
clutter_frame_set_result (frame, CLUTTER_FRAME_RESULT_IDLE);
}
gboolean