From b3c1af874a7dc31d24a2156f0d1519cae38a6251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Thu, 20 Nov 2003 09:05:32 +0000 Subject: [PATCH] Temporarily comment out Q_ASSERT's about stacking order, as they're quite harmless, but everybody blames them in their bugreports. svn path=/trunk/kdebase/kwin/; revision=268335 --- layers.cpp | 6 +++--- workspace.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layers.cpp b/layers.cpp index bf29cad327..839dea069f 100644 --- a/layers.cpp +++ b/layers.cpp @@ -202,7 +202,7 @@ void Workspace::propagateClients( bool propagate_new_clients ) // TODO misleading name for this method Client* Workspace::topClientOnDesktop( int desktop ) const { - Q_ASSERT( block_stacking_updates == 0 ); +// TODO Q_ASSERT( block_stacking_updates == 0 ); for ( ClientList::ConstIterator it = stacking_order.fromLast(); it != stacking_order.end(); --it) { if ( (*it)->isOnDesktop( desktop ) && !(*it)->isSpecialWindow() @@ -240,7 +240,7 @@ void Workspace::raiseOrLowerClient( Client *c) { if (!c) return; Client* topmost = NULL; - Q_ASSERT( block_stacking_updates == 0 ); +// TODO Q_ASSERT( block_stacking_updates == 0 ); if ( most_recently_raised && stacking_order.contains( most_recently_raised ) && most_recently_raised->isShown( true ) && c->isOnCurrentDesktop()) topmost = most_recently_raised; @@ -546,7 +546,7 @@ void Workspace::blockStackingUpdates( bool block ) // Ensure list is in stacking order ClientList Workspace::ensureStackingOrder( const ClientList& list ) const { - Q_ASSERT( block_stacking_updates == 0 ); +// TODO Q_ASSERT( block_stacking_updates == 0 ); if( list.count() < 2 ) return list; // TODO is this worth optimizing? diff --git a/workspace.cpp b/workspace.cpp index 35d13b761a..68e93c15bc 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -949,7 +949,7 @@ bool Workspace::setCurrentDesktop( int new_desktop ) if( popup ) popup->close(); block_focus = TRUE; - Q_ASSERT( block_stacking_updates == 0 ); // make sure stacking_order is up to date +// TODO Q_ASSERT( block_stacking_updates == 0 ); // make sure stacking_order is up to date StackingUpdatesBlocker blocker( this ); if (new_desktop != current_desktop)