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>
This commit is contained in:
parent
a79e2aafd6
commit
56a33edf2a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user