diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2012-06-26 19:04:59 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-26 20:32:07 +0200 |
commit | 5211f45d58f58e99395a71f0c17e797a854093d6 (patch) | |
tree | 0f96d9a82d727bd1c5869a38b160bdfff31da94d /src/plugins/platforms | |
parent | 8e5b6647a912faaebc2b3836a6876a6076787a1e (diff) |
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 <girish.1.ramakrishnan@nokia.com>
Diffstat (limited to 'src/plugins/platforms')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(), |