From b3227b675d733c6e88cdadec7d8ab524b2c8b040 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 21 Sep 2010 18:05:12 +0000 Subject: Attempt to fix desktop icon scrambling on logout/login Added debugging for XBadWindow problem git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1177931 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdesktop/kdiconview.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kdesktop') diff --git a/kdesktop/kdiconview.cc b/kdesktop/kdiconview.cc index 66796ca39..4124a3e8e 100644 --- a/kdesktop/kdiconview.cc +++ b/kdesktop/kdiconview.cc @@ -1082,7 +1082,7 @@ void KDIconView::slotNewItems( const KFileItemList & entries ) TQRect oldPos = fileIVI->rect(); fileIVI->move( x, y ); - if ( !firstRun && !isFreePosition( fileIVI ) ) // if we can't put it there, then let TQIconView decide + if ( (!firstRun) && (!isFreePosition( fileIVI )) && (!m_needDesktopAlign) ) // if we can't put it there, then let TQIconView decide { kdDebug(1214)<<"slotNewItems() pos was not free :-("<move( oldPos.x(), oldPos.y() ); @@ -1496,7 +1496,7 @@ void KDIconView::updateWorkArea( const TQRect &wr ) if (( iconArea() == wr ) && (m_needDesktopAlign == false)) return; // nothing changed; avoid repaint/saveIconPosition ... -// m_needDesktopAlign = false; + m_needDesktopAlign = false; lineupIcons(); TQRect oldArea = iconArea(); -- cgit v1.2.1