xcb: Check for SYNC extension before using it
authorUli Schlachter <psychon@znc.in>
Sat, 28 Jan 2012 21:47:30 +0000 (22:47 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 31 Jan 2012 03:55:50 +0000 (04:55 +0100)
commit98d34beb03018f9a0dcc371f9acabc40d9fdacce
treefa075afcf2b2a72d1ef4f3144505593b60dbacf1
parent64663146259c91038dffea325bd8287fb2a26fdb
xcb: Check for SYNC extension before using it

If we call any xcb_sync_*() function, libxcb will have to figure out
SYNC's major number. However, if that fails because the SYNC extension
is not available, xcb will disconnect from the server. Obviously,
that's not what we want and must be avoided.

Change-Id: I9a1032e1cfac074a52bafcb0772304bfd423e770
Signed-off-by: Uli Schlachter <psychon@znc.in>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/plugins/platforms/xcb/qxcbscreen.cpp