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>
This commit is contained in:
parent
8e5b6647a9
commit
5211f45d58
@ -1693,7 +1693,7 @@ bool QXcbWindow::startSystemResize(const QPoint &pos, Qt::Corner corner)
|
|||||||
xev.data.data32[2] = left ? 6 : 4; // bottomleft/bottomright
|
xev.data.data32[2] = left ? 6 : 4; // bottomleft/bottomright
|
||||||
else
|
else
|
||||||
xev.data.data32[2] = left ? 0 : 2; // topleft/topright
|
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;
|
xev.data.data32[4] = 0;
|
||||||
xcb_ungrab_pointer(connection()->xcb_connection(), XCB_CURRENT_TIME);
|
xcb_ungrab_pointer(connection()->xcb_connection(), XCB_CURRENT_TIME);
|
||||||
xcb_send_event(connection()->xcb_connection(), false, m_screen->root(),
|
xcb_send_event(connection()->xcb_connection(), false, m_screen->root(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user