xserver: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 21 09:45:52 UTC 2022


 hw/xwayland/xwayland-present.c |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

New commits:
commit b9b33d88ede76f0eec5055320e1cb27b37bade15
Author: Michel Dänzer <mdaenzer at redhat.com>
Date:   Wed Jun 15 15:54:29 2022 +0200

    xwayland/present: Do not send two idle notify events for flip pixmaps
    
    Could happen if the buffer release event was already processed before
    xwl_present_flips_stop.
    
    Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1351
    Reviewed-by: Olivier Fourdan <ofourdan at redhat.com>

diff --git a/hw/xwayland/xwayland-present.c b/hw/xwayland/xwayland-present.c
index ce74482ef..99e476b2f 100644
--- a/hw/xwayland/xwayland-present.c
+++ b/hw/xwayland/xwayland-present.c
@@ -276,7 +276,15 @@ xwl_present_flips_stop(WindowPtr window)
         xwl_present_free_idle_vblank(vblank);
 
     if (xwl_present_window->flip_active) {
-        xwl_present_free_idle_vblank(xwl_present_window->flip_active);
+        struct xwl_present_event *event;
+
+        vblank = xwl_present_window->flip_active;
+        event = xwl_present_event_from_id((uintptr_t)vblank);
+        if (event->pixmap)
+            xwl_present_free_idle_vblank(vblank);
+        else
+            xwl_present_free_event(event);
+
         xwl_present_window->flip_active = NULL;
     }
 


More information about the xorg-commit mailing list