From 5211f45d58f58e99395a71f0c17e797a854093d6 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Tue, 26 Jun 2012 19:04:59 +0100 Subject: Fix compilation for XCB-without-Xlib 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 --- src/plugins/platforms/xcb/qxcbwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/platforms/xcb/qxcbwindow.cpp b/src/plugins/platforms/xcb/qxcbwindow.cpp index a4ee2a461c..4cc4d6f199 100644 --- a/src/plugins/platforms/xcb/qxcbwindow.cpp +++ b/src/plugins/platforms/xcb/qxcbwindow.cpp @@ -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(), -- cgit v1.2.3