QXcbWindow::setMask(): Check for SHAPE extension
authorUli Schlachter <psychon@znc.in>
Tue, 17 Jul 2012 21:44:01 +0000 (23:44 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 24 Jul 2012 22:59:35 +0000 (00:59 +0200)
commitcd398431e370eddb80707e4aa195453036598d67
tree4b62d6994937e08ba97896e2310283bfb96a8fa6
parent597b99305e7c46ffcc83c60b7412bdff4e888500
QXcbWindow::setMask(): Check for SHAPE extension

If the SHAPE extension is not available and we try to use it, the xcb connection
will shut down and go into an error state. This is bad because there would be no
error message that would give a hint on what went wrong.

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