Add ability to disable multihead support

REVIEW: 107735
This commit is contained in:
Grégory Coutant 2012-12-14 19:41:13 +01:00 committed by Martin Gräßlin
parent 51ce05e445
commit e005e18a0f

View file

@ -48,6 +48,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <QLabel>
#include <KComboBox>
#include <QVBoxLayout>
#include <KGlobalSettings>
#include "config-workspace.h"
@ -442,7 +443,7 @@ KDE_EXPORT int kdemain(int argc, char * argv[])
int number_of_screens = ScreenCount(dpy);
// multi head
if (number_of_screens != 1) {
if (number_of_screens != 1 && KGlobalSettings::isMultiHead()) {
KWin::is_multihead = true;
KWin::screen_number = DefaultScreen(dpy);
int pos; // Temporarily needed to reconstruct DISPLAY var if multi-head