From e005e18a0fcffceff4a3f94886f311b5424b1d8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Coutant?= Date: Fri, 14 Dec 2012 19:41:13 +0100 Subject: [PATCH] Add ability to disable multihead support REVIEW: 107735 --- main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 76a8701477..9434a36d89 100644 --- a/main.cpp +++ b/main.cpp @@ -48,6 +48,7 @@ along with this program. If not, see . #include #include #include +#include #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