From eea03ab0c793d7cc1c0dc24942e0105fa04778b8 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Mon, 27 Feb 2017 20:27:32 +0200 Subject: [PATCH] fix screen choosing from configuration window --the check for the screen if it has the specific edge free added some small bugs --- app/dockview.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/dockview.cpp b/app/dockview.cpp index a0e83c90f..a2e569a79 100644 --- a/app/dockview.cpp +++ b/app/dockview.cpp @@ -155,10 +155,6 @@ void DockView::init() bool DockView::setCurrentScreen(const QString id) { - if (!m_screenToFollow || m_screenToFollow->name() == id) { - return false; - } - QScreen *nextScreen{qGuiApp->primaryScreen()}; if (id != "primary") { @@ -170,6 +166,10 @@ bool DockView::setCurrentScreen(const QString id) } } + if (m_screenToFollow == nextScreen) { + return true; + } + if (nextScreen) { auto *dockCorona = qobject_cast(this->corona()); @@ -184,7 +184,7 @@ bool DockView::setCurrentScreen(const QString id) } } - return false; + return true; } void DockView::setScreenToFollow(QScreen *screen)