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
This commit is contained in:
tsic404 2023-04-04 10:43:06 +08:00 committed by Tsic
parent c89b3cce44
commit 59f462ff09

View File

@ -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