e625aaa
From 679aa2a629e09aba00f26c819431e7d3a9113834 Mon Sep 17 00:00:00 2001
e625aaa
From: =?UTF-8?q?Michel=20D=C3=A4nzer?= <michel.daenzer@amd.com>
e625aaa
Date: Fri, 9 Nov 2018 17:18:53 +0100
e625aaa
Subject: [PATCH xserver 6/7] xwayland: Don't need xwl_window anymore in
e625aaa
 xwl_present_queue_vblank
e625aaa
e625aaa
Fixes issue #12. Presumably the problem was that Present operations on
e625aaa
unmapped windows were executed immediately instead of only when reaching
e625aaa
the target MSC.
e625aaa
e625aaa
(cherry picked from commit f541615342ce6bfb0e6d4e68deb3a924a87e8ba9)
e625aaa
---
e625aaa
 hw/xwayland/xwayland-present.c | 4 ----
e625aaa
 1 file changed, 4 deletions(-)
e625aaa
e625aaa
diff --git a/hw/xwayland/xwayland-present.c b/hw/xwayland/xwayland-present.c
e625aaa
index 7e49cb366..eea7415f3 100644
e625aaa
--- a/hw/xwayland/xwayland-present.c
e625aaa
+++ b/hw/xwayland/xwayland-present.c
e625aaa
@@ -345,13 +345,9 @@ xwl_present_queue_vblank(WindowPtr present_window,
e625aaa
                          uint64_t event_id,
e625aaa
                          uint64_t msc)
e625aaa
 {
e625aaa
-    struct xwl_window *xwl_window = xwl_window_from_window(present_window);
e625aaa
     struct xwl_present_window *xwl_present_window = xwl_present_window_get_priv(present_window);
e625aaa
     struct xwl_present_event *event;
e625aaa
 
e625aaa
-    if (!xwl_window)
e625aaa
-        return BadMatch;
e625aaa
-
e625aaa
     event = malloc(sizeof *event);
e625aaa
     if (!event)
e625aaa
         return BadAlloc;
e625aaa
-- 
e625aaa
2.19.2
e625aaa