Commits on Source (3)
-
Olivier Fourdan authored
weston-info has been deprecated for quite some time, whereas wayland-info may not be available yet. So we use either, depending on what's actually available. Signed-off-by:
Olivier Fourdan <ofourdan@redhat.com> Reviewed-by:
Michel Dänzer <mdaenzer@redhat.com>
-
Michel Dänzer authored
Preparation for following changes, no functional change intended.
-
Michel Dänzer authored
It could happen with the following call path: frame_callback xwl_present_frame_callback xwl_present_msc_bump xwl_present_execute xwl_present_flip xwl_window_create_frame_callback The nested loop called xwl_present_reset_timer, which may end up calling xorg_list_del for the entry after the one frame_callback started the chain for. This resulted in the outer loop never terminating, because its next element wasn't hooked up to the list anymore. We avoid this by calling xwl_present_reset_timer as needed in frame_callback, and bailing from xwl_window_create_frame_callback if it was called from the former. We also catch nested calls and FatalError if they ever happen again due to another bug. v2: * Leave xwl_present_reset_timer call in xwl_present_frame_callback, needed if xwl_present_msc_bump didn't hook up the window to the frame callback list again. Closes: xorg/xserver#1442
Showing
- hw/xwayland/xwayland-present.c 27 additions, 0 deletionshw/xwayland/xwayland-present.c
- hw/xwayland/xwayland-present.h 3 additions, 0 deletionshw/xwayland/xwayland-present.h
- hw/xwayland/xwayland-window.c 15 additions, 24 deletionshw/xwayland/xwayland-window.c
- test/scripts/xwayland-piglit.sh 6 additions, 1 deletiontest/scripts/xwayland-piglit.sh