xserver: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Sep 20 10:20:15 UTC 2021


 hw/xwayland/xwayland-present.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit 735dbde48294f9d0a8c3d791c44df14da9b91fc0
Author: Michel Dänzer <mdaenzer at redhat.com>
Date:   Fri Sep 17 11:55:52 2021 +0200

    xwayland/present: Move xwl_present_reset_timer call out of xwl_present_flip
    
    xwl_present_reset_timer checks if the pending flip is synchronous, so
    we need to call it after adding the pending flip to the flip queue.
    
    Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1219
    Fixes: b2a06e0700fa "xwayland/present: Drop sync_flip member of struct xwl_present_window"
    Tested-by: Olivier Fourdan <ofourdan at redhat.com>
    Acked-by: Olivier Fourdan <ofourdan at redhat.com>

diff --git a/hw/xwayland/xwayland-present.c b/hw/xwayland/xwayland-present.c
index c9cf8c2f5..69c02dce4 100644
--- a/hw/xwayland/xwayland-present.c
+++ b/hw/xwayland/xwayland-present.c
@@ -689,9 +689,6 @@ xwl_present_flip(WindowPtr present_window,
                       &xwl_window->frame_callback_list);
     }
 
-    /* Realign timer */
-    xwl_present_reset_timer(xwl_present_window);
-
     xwl_surface_damage(xwl_window->xwl_screen, xwl_window->surface,
                        damage_box->x1 - present_window->drawable.x,
                        damage_box->y1 - present_window->drawable.y,
@@ -784,6 +781,10 @@ xwl_present_execute(present_vblank_ptr vblank, uint64_t ust, uint64_t crtc_msc)
 
                 /* Put pending flip at the flip queue head */
                 xorg_list_add(&vblank->event_queue, &xwl_present_window->flip_queue);
+
+                /* Realign timer */
+                xwl_present_reset_timer(xwl_present_window);
+
                 return;
             }
 


More information about the xorg-commit mailing list