summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrediano Ziglio <freddy77@gmail.com>2022-02-12 21:12:57 +0000
committerFrediano Ziglio <freddy77@gmail.com>2022-02-14 09:35:55 +0000
commit0717474feca8753bce7b8933bd10b3bab62a2f14 (patch)
tree50a3c05e1e213dec2bb8cf9defcf96eaaf21d63a
parent2289931e94b5a21268100acb65d8477879702663 (diff)
Do not process X11 events in vdagent_x11_create
Processing events requires some more initialisation between VDAgentDisplay and vdagent_x11. Postpone that after initialisation. This fix a crash on Fedora 36, see https://bugzilla.redhat.com/show_bug.cgi?id=2042877. Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
-rw-r--r--src/vdagent/x11.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/vdagent/x11.c b/src/vdagent/x11.c
index 05a41d7..4af4bdc 100644
--- a/src/vdagent/x11.c
+++ b/src/vdagent/x11.c
@@ -302,9 +302,6 @@ struct vdagent_x11 *vdagent_x11_create(UdscsConnection *vdagentd,
x11->height[i] = attrib.height;
}
- /* Flush output buffers and consume any pending events */
- vdagent_x11_do_read(x11);
-
return x11;
}