Fix compilation for XCB-without-Xlib
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Tue, 26 Jun 2012 18:04:59 +0000 (19:04 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 26 Jun 2012 18:32:07 +0000 (20:32 +0200)
Commit 6481218da13539529b87626a352a17f42c57be61 broke the build by
removing the #ifdef XCB_USE_XLIB guards, but forgetting to port
Button1 to the XCB equivalent.

Change-Id: I9102feceb4deb0135ce0df318e46b35d1134a0b9
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
src/plugins/platforms/xcb/qxcbwindow.cpp

index a4ee2a4..4cc4d6f 100644 (file)
@@ -1693,7 +1693,7 @@ bool QXcbWindow::startSystemResize(const QPoint &pos, Qt::Corner corner)
         xev.data.data32[2] = left ? 6 : 4; // bottomleft/bottomright
     else
         xev.data.data32[2] = left ? 0 : 2; // topleft/topright
-    xev.data.data32[3] = Button1;
+    xev.data.data32[3] = XCB_BUTTON_INDEX_1;
     xev.data.data32[4] = 0;
     xcb_ungrab_pointer(connection()->xcb_connection(), XCB_CURRENT_TIME);
     xcb_send_event(connection()->xcb_connection(), false, m_screen->root(),