From 7ddeb05c7df499209271d97609edf9257dbf4c62 Mon Sep 17 00:00:00 2001 From: Oleg Romashin Date: Tue, 18 Oct 2011 13:18:43 -0700 Subject: [PATCH] Bug 695231 - Disable animated orientation change in Meegotouch window/scene manager. r=jeremias --- widget/src/qt/mozqorientationsensorfilter.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/widget/src/qt/mozqorientationsensorfilter.cpp b/widget/src/qt/mozqorientationsensorfilter.cpp index 7cfb6b6a687b..672fe9aaecb3 100644 --- a/widget/src/qt/mozqorientationsensorfilter.cpp +++ b/widget/src/qt/mozqorientationsensorfilter.cpp @@ -39,6 +39,7 @@ #ifdef MOZ_ENABLE_MEEGOTOUCH #include #include +#include #endif #include "nsXULAppAPI.h" @@ -81,8 +82,10 @@ MozQOrientationSensorFilter::filter(QOrientationReading* reading) #ifdef MOZ_ENABLE_MEEGOTOUCH if (XRE_GetProcessType() == GeckoProcessType_Default) { MWindow* window = MApplication::activeWindow(); - if (window) { - window->setOrientationAngle((M::OrientationAngle)mWindowRotationAngle); + if (window && window->sceneManager()) { + window->sceneManager()-> + setOrientationAngle((M::OrientationAngle)mWindowRotationAngle, + MSceneManager::ImmediateTransition); } } #else