#include <qpopupmenu.h>
#include <qworkspace.h>
#include <qwidgetlist.h>
+#include <qapplication.h>
QtxWorkspaceAction::QtxWorkspaceAction( QWorkspace* ws, QObject* parent, const char* name )
: QtxAction( tr( "Controls windows into workspace" ), tr( "Workspace management" ), 0, parent, name ),
if ( !count )
return;
- int y = 0;
+ if ( wrkSpace->activeWindow() && wrkSpace->activeWindow()->testWState( WState_Maximized ) )
+ wrkSpace->activeWindow()->showNormal();
+ int y = 0;
int heightForEach = wrkSpace->height() / count;
for ( QWidgetListIt it( winList ); it.current(); ++it )
{
win->hide();
win->showNormal();
}
+
+ QApplication::sendPostedEvents( 0, QEvent::ShowNormal );
+
int prefH = win->minimumHeight() + win->parentWidget()->baseSize().height();
int actualH = QMAX( heightForEach, prefH );
if ( !count )
return;
+ if ( wrkSpace->activeWindow() && wrkSpace->activeWindow()->testWState( WState_Maximized ) )
+ wrkSpace->activeWindow()->showNormal();
+
int x = 0;
int widthForEach = wrkSpace->width() / count;
for ( QWidgetListIt it( winList ); it.current(); ++it )
win->hide();
win->showNormal();
}
+
+ QApplication::sendPostedEvents( 0, QEvent::ShowNormal );
+
int prefW = win->minimumWidth();
int actualW = QMAX( widthForEach, prefW );