~unity-2d-team/unity-2d/rating_filters

« back to all changes in this revision

Viewing changes to places/app/dashdeclarativeview.cpp

  • Committer: Tarmac
  • Author(s): Florian Boucault
  • Date: 2011-08-09 15:31:36 UTC
  • mfrom: (663.1.1 declarative_view_global_pos)
  • Revision ID: ubuntu.builder@gmail.com-20110809153136-69quyiw5y57jo5ft
[dash] Properly position background wallpaper when using a non compositing window manager.
  
New Unity2DDeclarativeView::globalPosition property that cancels the need for using 'launcherMaximumWidth'.
Every QML based component (launcher, spread, dash) now exposes a 'declarativeView' variable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
174
174
        m_launcherClient->endForceVisible();
175
175
        activeChanged(false);
176
176
    } else {
 
177
        if (m_mode == FullScreenMode) {
 
178
            fitToAvailableSpace();
 
179
        } else {
 
180
            resizeToDesktopModeSize();
 
181
        }
177
182
        show();
178
183
        raise();
179
184
        // We need a delay, otherwise the window may not be visible when we try to activate it
180
185
        QTimer::singleShot(0, this, SLOT(forceActivateWindow()));
181
 
        if (m_mode == FullScreenMode) {
182
 
            fitToAvailableSpace();
183
 
        } else {
184
 
            resizeToDesktopModeSize();
185
 
        }
186
186
        if (oldMode == HiddenMode) {
187
187
            // Check old mode to ensure we do not call BeginForceVisible twice
188
188
            // if we go from desktop to fullscreen mode