xcb: Sync XCB connection after reparenting window
This is important for the reparenting to take effect even if there are no other state changes to the window, such as changing its geometry. Pick-to: 6.7 6.5 6.2 5.15 Change-Id: I9b39b56d163faf7a9b472cefbb19efdb944cb304 Reviewed-by: Liang Qi <liang.qi@qt.io> (cherry picked from commit 92619ce2ec8381aa01647337665e626b84063f59) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
d5109e4a88
commit
b86a0cb720
@ -1325,6 +1325,7 @@ void QXcbWindow::setParent(const QPlatformWindow *parent)
|
||||
m_embedded = false;
|
||||
}
|
||||
xcb_reparent_window(xcb_connection(), xcb_window(), xcb_parent_id, topLeft.x(), topLeft.y());
|
||||
connection()->sync();
|
||||
}
|
||||
|
||||
void QXcbWindow::setWindowTitle(const QString &title)
|
||||
|
Loading…
x
Reference in New Issue
Block a user