From 59f462ff09373f84b1c8d40b7c702f8dc27a76b7 Mon Sep 17 00:00:00 2001 From: tsic404 Date: Tue, 4 Apr 2023 10:43:06 +0800 Subject: [PATCH] fix: fix xembed tray flew out xcb create window must map to xembedtray widget, otherwise the window will fly out log: fix xembed tray fly out --- frame/window/tray/widgets/xembedtrayitemwidget.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/frame/window/tray/widgets/xembedtrayitemwidget.cpp b/frame/window/tray/widgets/xembedtrayitemwidget.cpp index 3dbc81902..33215adf1 100644 --- a/frame/window/tray/widgets/xembedtrayitemwidget.cpp +++ b/frame/window/tray/widgets/xembedtrayitemwidget.cpp @@ -251,13 +251,12 @@ void XEmbedTrayItemWidget::wrapWindow() xcb_flush(c); - if (isVisible()) { - xcb_map_window(c, m_containerWid); - xcb_reparent_window(c, m_windowId, - m_containerWid, - 0, 0); - } + xcb_map_window(c, m_containerWid); + + xcb_reparent_window(c, m_windowId, + m_containerWid, + 0, 0); /* * Render the embedded window offscreen