~aacid/unity-2d/doNotCallWindowsMoreThanNeeded_854634

« back to all changes in this revision

Viewing changes to panel/applets/appname/windowhelper.cpp

  • Committer: Tarmac
  • Author(s): LDS
  • Date: 2011-12-09 09:58:25 UTC
  • mfrom: (805.2.2 verify-unmaximize)
  • Revision ID: tarmac-20111209095825-y3mdygrz6i6c2b8u
[Dash] clicking maximize button should toggle the Dash between maximize and unmaximize state. Fixes: https://bugs.launchpad.net/bugs/860400. Appoved by Tiago Salem Herrmann.

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
        wnck_window_get_geometry(d->m_window, &x, &y, &width, &height);
172
172
        const QRect windowGeometry(x, y, width, height);
173
173
        ScreenInfo* screenInfo = ScreenInfo::instance();
174
 
        return screenInfo->availableGeometry() == windowGeometry;
 
174
        return screenInfo->panelsFreeGeometry() == windowGeometry;
175
175
    } else {
176
176
        return wnck_window_is_maximized(d->m_window);
177
177
    }