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
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() ) );
}