xcb: Check for SHAPE extension before using it
authorUli Schlachter <psychon@znc.in>
Fri, 2 Mar 2012 15:33:01 +0000 (16:33 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 2 Mar 2012 20:33:08 +0000 (21:33 +0100)
commit9c757fac3540f12b066dcecc936714bcd119f155
tree83b3ff546bd3718ae633928bc442070bc491ace4
parentc679b2f0a65a630f7490b37529e2186a8cd9c78b
xcb: Check for SHAPE extension before using it

This change makes sure that the X11 server really supports the SHAPE
extension before it is used.

Before this, libxcb would disconnect from the server as soon as it was
told to send a SHAPE request to a server which doesn't support SHAPE. Oh
and of course it would do so without any good error message.

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