Declare parameters to xcb_create_window with correct type

Change-Id: I76898ae971858f35557a50baa4a546cfad91ae14
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
bb10
Frederik Gladhorn 2016-09-15 21:34:30 +02:00 committed by Frederik Gladhorn
parent 6616617a87
commit e42d0d3caa
1 changed files with 2 additions and 1 deletions

View File

@ -1497,7 +1497,8 @@ xcb_window_t QXcbConnection::getQtSelectionOwner()
{
if (!m_qtSelectionOwner) {
xcb_screen_t *xcbScreen = primaryVirtualDesktop()->screen();
int x = 0, y = 0, w = 3, h = 3;
int16_t x = 0, y = 0;
uint16_t w = 3, h = 3;
m_qtSelectionOwner = xcb_generate_id(xcb_connection());
Q_XCB_CALL(xcb_create_window(xcb_connection(),
XCB_COPY_FROM_PARENT, // depth -- same as root