Blame SOURCES/0022-Do-not-process-X11-events-in-vdagent_x11_create.patch

af24d1
From 0717474feca8753bce7b8933bd10b3bab62a2f14 Mon Sep 17 00:00:00 2001
af24d1
From: Frediano Ziglio <freddy77@gmail.com>
af24d1
Date: Sat, 12 Feb 2022 21:12:57 +0000
af24d1
Subject: [PATCH] Do not process X11 events in vdagent_x11_create
af24d1
af24d1
Processing events requires some more initialisation between
af24d1
VDAgentDisplay and vdagent_x11.
af24d1
Postpone that after initialisation.
af24d1
This fix a crash on Fedora 36, see
af24d1
https://bugzilla.redhat.com/show_bug.cgi?id=2042877.
af24d1
af24d1
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
af24d1
---
af24d1
 src/vdagent/x11.c | 3 ---
af24d1
 1 file changed, 3 deletions(-)
af24d1
af24d1
diff --git a/src/vdagent/x11.c b/src/vdagent/x11.c
af24d1
index 05a41d7..4af4bdc 100644
af24d1
--- a/src/vdagent/x11.c
af24d1
+++ b/src/vdagent/x11.c
af24d1
@@ -302,9 +302,6 @@ struct vdagent_x11 *vdagent_x11_create(UdscsConnection *vdagentd,
af24d1
         x11->height[i] = attrib.height;
af24d1
     }
af24d1
 
af24d1
-    /* Flush output buffers and consume any pending events */
af24d1
-    vdagent_x11_do_read(x11);
af24d1
-
af24d1
     return x11;
af24d1
 }
af24d1
 
af24d1
-- 
af24d1
2.39.0
af24d1