diff options
author | Ilya Fedin <fedin-ilja2010@ya.ru> | 2022-06-20 23:01:52 +0400 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2022-06-21 11:07:47 +0000 |
commit | 56a33edf2a156727043c47023f5503f88913b466 (patch) | |
tree | 8b8bba2995a9edb494665ff4aaa81b3f13c12267 /src/plugins | |
parent | a79e2aafd63071da42212f6d30e64aef878154ab (diff) |
xcb: Port XSync call in QXcbWindow::create to xcb
QXcbConnection::sync is a full equivalent of calling XSync with false,
they both are sending GetInputFocus request and getting its reply
Pick-to: 6.4
Change-Id: I4f91b9447a02def41a8693a54312856b56e74811
Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbwindow.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/platforms/xcb/qxcbwindow.cpp b/src/plugins/platforms/xcb/qxcbwindow.cpp index c18c1fcfd9..a37c03cc60 100644 --- a/src/plugins/platforms/xcb/qxcbwindow.cpp +++ b/src/plugins/platforms/xcb/qxcbwindow.cpp @@ -440,10 +440,8 @@ void QXcbWindow::create() setWindowFlags(window()->flags()); setWindowTitle(window()->title()); -#if QT_CONFIG(xcb_xlib) // force sync to read outstanding requests - see QTBUG-29106 - XSync(static_cast<Display*>(platformScreen->connection()->xlib_display()), false); -#endif + connection()->sync(); #if QT_CONFIG(draganddrop) connection()->drag()->dndEnable(this, true); |