Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37743508
en ru br
ALT Linux repos
5.0: 1.0.13-alt0.M50.1
4.1: 1.0.13-alt0.M41.1
4.0: 1.0.7-alt2.M40.1

Group :: Networking/Remote access
RPM: italc

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: italc-1.0.9.1.6-ubuntu-autoarrange.patch
Download


 ima/src/classroom_manager.cpp |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/ima/src/classroom_manager.cpp b/ima/src/classroom_manager.cpp
index f28d72e..7aac601 100644
--- a/ima/src/classroom_manager.cpp
+++ b/ima/src/classroom_manager.cpp
@@ -77,6 +77,7 @@ inline T roundCorrect( T _val )
 
 
 const int widths[] = { 128, 192, 256, 320, 384, 448, 512, 0 };
+int items_at_zero_pos = 0;
 
 
 
@@ -728,6 +729,7 @@ void classroomManager::loadTree( classRoom * _parent_item,
 						getMainWindow(),
 						e.attribute( "id" ).toInt() );
 				c->hide();
+				++items_at_zero_pos;
 			}
 			else
 			{
@@ -742,6 +744,10 @@ void classroomManager::loadTree( classRoom * _parent_item,
 					e.attribute( "y" ).toInt() );
 				c->m_rasterX = e.attribute( "x" ).toInt();
 				c->m_rasterY = e.attribute( "y" ).toInt();
+				if( c->m_rasterX != 0 || c->m_rasterY != 0 )
+				{
+					--items_at_zero_pos;
+				}
 				c->setFixedSize( e.attribute( "w" ).toInt(),
 						e.attribute( "h" ).toInt() );
 
@@ -991,6 +997,12 @@ void classroomManager::updateClients( void )
 		cl->update();
 	}
 
+	if ( items_at_zero_pos > 1 )
+	{
+		arrangeWindows();
+		items_at_zero_pos = 0;
+	}
+
 	QTimer::singleShot( m_clientUpdateInterval * 1000, this,
 						SLOT( updateClients() ) );
 }
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin