Use XCB_TIME_CURRENT_TIME instead of CurrentTime from X.h in xcb plugin.

The less X header dependencies the better, we might at some time in the
future be able to do without the XCB_USE_XLIB define as well.

Change-Id: Ib45986036febef70798851ee8455e054eafc9d22
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Jan Arne Petersen <jpetersen@openismus.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
bb10
Samuel Rødal 2012-03-23 08:00:11 +01:00 committed by Qt by Nokia
parent 518a4cb5ab
commit efa0f1f0a7
1 changed files with 1 additions and 1 deletions

View File

@ -551,7 +551,7 @@ void QXcbWindow::show()
updateNetWmStateBeforeMap();
}
if (connection()->time() != CurrentTime)
if (connection()->time() != XCB_TIME_CURRENT_TIME)
updateNetWmUserTime(connection()->time());
Q_XCB_CALL(xcb_map_window(xcb_connection(), m_window));