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 Change-Id: I4f91b9447a02def41a8693a54312856b56e74811 Reviewed-by: Liang Qi <liang.qi@qt.io> (cherry picked from commit 56a33edf2a156727043c47023f5503f88913b466) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
e58a29bdae
commit
5f25bbb632
@ -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