Skip to content

Commit

Permalink
Fixes: Transition animation starts in half-screen when page shown for…
Browse files Browse the repository at this point in the history
… a first time after rotation.

RevBy: Tomas Junnonen
Details: Window was not informed about orientation change. Now it gets an event when after registering with scene manager.
  • Loading branch information
Jaroslaw Jaryszew authored and Tomas Junnonen committed Jul 16, 2010
1 parent f2ee7b8 commit 637b470
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/corelib/scene/mscenemanager.cpp
Expand Up @@ -547,6 +547,9 @@ void MSceneManagerPrivate::addSceneWindow(MSceneWindow *sceneWindow)
if (!sceneWindow->d_func()->sceneManager) {
// Just add it
addUnmanagedSceneWindow(sceneWindow);
// This window was not receiving any events. Might not know about orientation change yet.
MOrientationChangeEvent event(orientation(angle));
scene->sendEvent(sceneWindow, &event);
} else {
if (sceneWindow->d_func()->sceneManager != q) {
// scene window belongs to another scene manager, remove it from him.
Expand Down

0 comments on commit 637b470

Please sign in to comment.