From a622d5300a37d85d5316705ac8c3b91f87806071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 7 Apr 2014 08:01:46 +0200 Subject: [PATCH] [wayland] Properly create WaylandScreens Rebase error - caused KWin to just crash when started in Wayland mode. --- screens.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screens.cpp b/screens.cpp index 9f49a60e66..a4f6a4252e 100644 --- a/screens.cpp +++ b/screens.cpp @@ -41,7 +41,6 @@ Screens *Screens::create(QObject *parent) #if HAVE_WAYLAND if (kwinApp()->operationMode() == Application::OperationModeWaylandAndX11) { s_self = new WaylandScreens(parent); - return s_self; } #endif if (kwinApp()->operationMode() == Application::OperationModeX11) { @@ -279,6 +278,7 @@ void WaylandScreens::updateCount() setCount(1); return; } + setCount(m_geometries.count()); updateXRandr(); emit changed(); }