Make sure topmenu space is even below fullscreens if there are no topmenus.

svn path=/trunk/kdebase/kwin/; revision=333180
This commit is contained in:
Luboš Luňák 2004-07-27 08:48:38 +00:00
parent 5979a50bb6
commit 9f5920a134

View file

@ -145,11 +145,11 @@ void Workspace::propagateClients( bool propagate_new_clients )
--it )
{
new_stack[ pos++ ] = (*it)->frameId();
if( (*it)->isTopMenu())
if( (*it)->belongsToLayer() >= DockLayer )
topmenu_space_pos = pos;
}
if( topmenu_space != NULL )
{ // make sure the topmenu space is below all topmenus, if there are any
{ // make sure the topmenu space is below all topmenus, fullscreens, etc.
for( int i = pos;
i > topmenu_space_pos;
--i )