aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrégory Coutant <gregory.coutant@gmail.com>2012-12-14 18:41:13 (GMT)
committerMartin Gräßlin <mgraesslin@kde.org>2013-01-11 08:37:19 (GMT)
commitab6d5c048a25bcb2f5bdb822ba3eda64019c61bc (patch)
treed8cd2f77ca6bba939c591e54b6d501f484f08879
parent5e4d366cb9b7698c1c7bdea14b3576a8d5fe85bb (diff)
Add ability to disable multihead support
REVIEW: 107735
-rw-r--r--kwin/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/kwin/main.cpp b/kwin/main.cpp
index 76a8701..9434a36 100644
--- a/kwin/main.cpp
+++ b/kwin/main.cpp
@@ -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