[xcb] Safety check whether we have a QApplication in mapViewport

Review Request #126397 - Created Dec. 17, 2015 and discarded

Information
Martin Flöser
kwindowsystem
master
354811
Reviewers
kdeframeworks, kwin
aacid
We observed that with Compiz as window manager various applications
crash if they use QGuiApplication instead of QApplication. The reason
for this is that on Compiz the mapViewport code paths are used and
that has a widgets dependency.

This change should ensure that applications do at least not crash
in this condition.

BUG: 354811

User in referenced bug report tested it, works.

Issues

  • 1
  • 0
  • 0
  • 1
Description From Last Updated
qobject_cast? Alex Richardson Alex Richardson
Martin Flöser
Thomas Lübking
Alex Richardson
Martin Flöser
Review request changed

Status: Discarded

Loading...