From 07d68dd636ded9c8f3720b21858dc28ee0970268 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Wed, 1 Mar 2017 15:26:46 +0200 Subject: [PATCH] fix typo for LeftEdge --this was breaking the AlwaysVisible experience for Left docks --- app/xwindowinterface.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/xwindowinterface.cpp b/app/xwindowinterface.cpp index 9a54795ba..fe2fb4336 100644 --- a/app/xwindowinterface.cpp +++ b/app/xwindowinterface.cpp @@ -36,11 +36,11 @@ XWindowInterface::XWindowInterface(QObject *parent) { m_activities = new KActivities::Consumer(this); connect(KWindowSystem::self(), &KWindowSystem::activeWindowChanged - , this, &AbstractWindowInterface::activeWindowChanged); + , this, &AbstractWindowInterface::activeWindowChanged); connect(KWindowSystem::self() - , static_cast - (&KWindowSystem::windowChanged) - , this, &XWindowInterface::windowChangedProxy); + , static_cast + (&KWindowSystem::windowChanged) + , this, &XWindowInterface::windowChangedProxy); auto addWindow = [&](WId wid) { if (std::find(m_windows.cbegin(), m_windows.cend(), wid) == m_windows.cend()) { @@ -59,9 +59,9 @@ XWindowInterface::XWindowInterface(QObject *parent) } }); connect(KWindowSystem::self(), &KWindowSystem::currentDesktopChanged - , this, &XWindowInterface::currentDesktopChanged); + , this, &XWindowInterface::currentDesktopChanged); connect(m_activities.data(), &KActivities::Consumer::currentActivityChanged - , this, &XWindowInterface::currentActivityChanged); + , this, &XWindowInterface::currentActivityChanged); // fill windows list foreach (const auto &wid, KWindowSystem::self()->windows()) { @@ -105,7 +105,7 @@ void XWindowInterface::setDockStruts(WId dockId, const QRect &dockRect, Plasma:: strut.bottom_end = dockRect.x() + dockRect.width() - 1; break; - case Plasma::Types::Left: + case Plasma::Types::LeftEdge: strut.left_width = dockRect.width(); strut.left_start = dockRect.y(); strut.left_end = dockRect.y() + dockRect.height() - 1; @@ -172,7 +172,7 @@ void XWindowInterface::slideWindow(QQuickWindow &view, AbstractWindowInterface:: break; default: - break; + break; } KWindowEffects::slideWindow(view.winId(), slideLocation, -1);