[aurorae] Whether animations are supported only depends on compositing

Test for raster graphics system doesn't make any sense in QtQuick2 world.
This commit is contained in:
Martin Gräßlin 2013-10-02 10:01:28 +02:00
parent 736a0c5611
commit d1afcc7cb2

View file

@ -26,7 +26,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <QtDeclarative/QDeclarativeEngine>
#include <QtDeclarative/QDeclarativeItem>
#include <QGraphicsView>
#include <QPaintEngine>
#include <QStandardPaths>
#include <KConfig>
@ -586,14 +585,7 @@ QRegion AuroraeClient::region(KDecorationDefines::Region r)
bool AuroraeClient::animationsSupported() const
{
if (!compositingActive()) {
return false;
}
QPixmap pix(1,1);
QPainter p(&pix);
const bool raster = p.paintEngine()->type() == QPaintEngine::Raster;
p.end();
return raster;
return compositingActive();
}
} // namespace Aurorae