[wayland] Properly create WaylandScreens

Rebase error - caused KWin to just crash when started in Wayland mode.
icc-effect-5.14.5
Martin Gräßlin 2014-04-07 08:01:46 +02:00
parent 8a2df7ac4d
commit a622d5300a
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}