fix #527, Dock dodges maximized window on different screen.

pull/1/head
Johan Smith Agudelo Rodriguez 8 years ago
parent 9e0ac22339
commit a409d761b7

@ -371,7 +371,7 @@ void VisibilityManagerPrivate::dodgeMaximized(WId wid)
|| (view->screen() && view->screen()->size().width() <= winfo.geometry().width());
};
if (wm->isOnCurrentDesktop(wid) && !winfo.isMinimized())
if (wm->isOnCurrentDesktop(wid) && !winfo.isMinimized() && intersects(winfo))
raiseDock(view->formFactor() == Plasma::Types::Vertical
? !isMaxHoriz() : !isMaxVert());
}

Loading…
Cancel
Save