~ubuntu-mate-dev/compiz/marco-decoration

« back to all changes in this revision

Viewing changes to plugins/td/src/3d.cpp

  • Committer: CI Train Bot
  • Author(s): Eleni Maria Stea
  • Date: 2015-08-05 11:26:16 UTC
  • mfrom: (3947.3.23 compiz)
  • Revision ID: ci-train-bot@canonical.com-20150805112616-zlywamdelrbqrzag
Sometimes the MultipleCubes, Automatic or OneBigCube option might be set although we are not in multimonitor. Modified the 3d windows plugin to check the number of monitors as well.
Approved by: PS Jenkins bot, Stephen M. Webb

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
 
94
94
    cScreen->preparePaint (msSinceLastPaint);
95
95
 
96
 
    if (cubeScreen->multioutputMode() == CubeScreen::MultipleCubes)
 
96
    if (cubeScreen->multioutputMode() != CubeScreen::OneBigCube && screen->outputDevs().size() > 1)
97
97
        setFunctions(false);
98
98
    else
99
99
        setFunctions (mActive);