distribution/packages/wayland/weston/patches/003-use-old-repaint-behavior.patch
2024-01-24 00:41:39 +00:00

12 lines
631 B
Diff

diff -rupN weston-12.0.3.orig/libweston/compositor.c weston-12.0.3/libweston/compositor.c
--- weston-12.0.3.orig/libweston/compositor.c 2024-01-15 15:42:23.723505677 +0000
+++ weston-12.0.3/libweston/compositor.c 2024-01-24 00:32:15.715324559 +0000
@@ -3350,7 +3350,7 @@ weston_output_finish_frame(struct weston
* If not given, INVALID flag must be set.
*/
if (stamp)
- assert(timespec_sub_to_nsec(stamp, &output->frame_time) >= 0);
+ assert(timespec_sub_to_nsec(stamp, &output->frame_time) || (presented_flags & WP_PRESENTATION_FEEDBACK_INVALID));
else
assert(presented_flags & WP_PRESENTATION_FEEDBACK_INVALID);