Commit b648e677 authored by Olivier Teulière's avatar Olivier Teulière

* skins2: Prevent invisible windows from anchoring the sides of the screen

parent f6d61c2e
...@@ -264,6 +264,12 @@ void WindowManager::checkAnchors( TopWindow *pWindow, ...@@ -264,6 +264,12 @@ void WindowManager::checkAnchors( TopWindow *pWindow,
for( itMov = m_movingWindows.begin(); for( itMov = m_movingWindows.begin();
itMov != m_movingWindows.end(); itMov++ ) itMov != m_movingWindows.end(); itMov++ )
{ {
// Skip the invisible windows
if( ! (*itMov)->getVisibleVar().get() )
{
continue;
}
int newLeft = (*itMov)->getLeft() + xOffset; int newLeft = (*itMov)->getLeft() + xOffset;
int newTop = (*itMov)->getTop() + yOffset; int newTop = (*itMov)->getTop() + yOffset;
if( newLeft > workArea.getLeft() - m_magnet && if( newLeft > workArea.getLeft() - m_magnet &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment