mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-27 14:50:21 +03:00
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.
This commit is contained in:
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…
x
Reference in New Issue
Block a user