From acfceaa93f54798b0a4ffdf39d3197ac0b9025d1 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Tue, 20 Jul 2021 23:13:15 +0200 Subject: [PATCH] Reuse the reparenting tracing in XEmbed --- src/wine-host/editor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wine-host/editor.cpp b/src/wine-host/editor.cpp index 1bce4be6..1b7437ea 100644 --- a/src/wine-host/editor.cpp +++ b/src/wine-host/editor.cpp @@ -866,8 +866,7 @@ void Editor::do_xembed() const { // If we're embedding using XEmbed, then we'll have to go through the whole // XEmbed dance here. See the spec for more information on how this works: // https://specifications.freedesktop.org/xembed-spec/xembed-spec-latest.html#lifecycle - xcb_reparent_window(x11_connection.get(), wine_window, parent_window, 0, 0); - xcb_flush(x11_connection.get()); + do_reparent(); // Let the Wine window know it's being embedded into the parent window send_xembed_message(wine_window, xembed_embedded_notify_msg, 0,