~dyams/unity-2d/remove-glow

« back to all changes in this revision

Viewing changes to libunity-2d-private/src/dashclient.cpp

  • Committer: Tarmac
  • Author(s): Michał Sawicz, Albert Astals
  • Date: 2012-02-07 11:29:36 UTC
  • mfrom: (879.11.17 refactor-screeninfo)
  • Revision ID: tarmac-20120207112936-r1iya0418z3d7evn
This, in itself, will not change anything in unity-2d, but will later allow for easier multi-monitor implementation.. Fixes: . Approved by Gerry Boland.

Show diffs side-by-side

added added

removed removed

Lines of Context:
179
179
    if (unity2dConfiguration().property("formFactor").toString() != "desktop") {
180
180
        alwaysFullScreen = true;
181
181
    } else {
182
 
        QRect rect = QApplication::desktop()->screenGeometry();
 
182
        QRect rect = QApplication::desktop()->screenGeometry(QPoint());
183
183
        QSize minSize = minimumSizeForDesktop();
184
184
        alwaysFullScreen = rect.width() < minSize.width() && rect.height() < minSize.height();
185
185
    }