fix #907,always check overlap for dodgeMaximize

--the check in order to identify if a maximized window
overlaps with the dock wasnt always been executed. That
was the case for multi-screens environments.
v0.7
Michail Vourlakos 7 years ago
parent 13a923bfa2
commit 7ed33e2497

@ -381,15 +381,15 @@ void VisibilityManagerPrivate::dodgeMaximized(WindowId wid)
}
auto isMaxVert = [&]() noexcept -> bool {
return winfo.isMaxVert()
|| (view->screen() && view->screen()->availableSize().height() <= winfo.geometry().height()
&& intersects(winfo));
return ((winfo.isMaxVert()
|| (view->screen() && view->screen()->availableSize().height() <= winfo.geometry().height()))
&& intersects(winfo));
};
auto isMaxHoriz = [&]() noexcept -> bool {
return winfo.isMaxHoriz()
|| (view->screen() && view->screen()->availableSize().width() <= winfo.geometry().width()
&& intersects(winfo));
return ((winfo.isMaxHoriz()
|| (view->screen() && view->screen()->availableSize().width() <= winfo.geometry().width()))
&& intersects(winfo));
};
//!dont send false raiseDock signal when containing mouse

Loading…
Cancel
Save