Use XCB_TIME_CURRENT_TIME instead of CurrentTime from X.h in xcb plugin.
authorSamuel Rødal <samuel.rodal@nokia.com>
Fri, 23 Mar 2012 07:00:11 +0000 (08:00 +0100)
committerQt by Nokia <qt-info@nokia.com>
Sat, 24 Mar 2012 20:07:08 +0000 (21:07 +0100)
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>
src/plugins/platforms/xcb/qxcbwindow.cpp

index 91337ad..ba4a6f7 100644 (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));