Topmenus have special layer, avoid stacking operations with them.
Fixes a small problem with #77341. svn path=/trunk/kdebase/kwin/; revision=305888
This commit is contained in:
parent
75029e652b
commit
6f3db8f9fe
1 changed files with 10 additions and 0 deletions
10
layers.cpp
10
layers.cpp
|
@ -270,6 +270,8 @@ void Workspace::lowerClient( Client* c )
|
|||
{
|
||||
if ( !c )
|
||||
return;
|
||||
if( c->isTopMenu())
|
||||
return;
|
||||
|
||||
c->cancelAutoRaise();
|
||||
|
||||
|
@ -295,6 +297,8 @@ void Workspace::lowerClientWithinApplication( Client* c )
|
|||
{
|
||||
if ( !c )
|
||||
return;
|
||||
if( c->isTopMenu())
|
||||
return;
|
||||
|
||||
c->cancelAutoRaise();
|
||||
|
||||
|
@ -321,6 +325,8 @@ void Workspace::raiseClient( Client* c )
|
|||
{
|
||||
if ( !c )
|
||||
return;
|
||||
if( c->isTopMenu())
|
||||
return;
|
||||
|
||||
c->cancelAutoRaise();
|
||||
|
||||
|
@ -349,6 +355,8 @@ void Workspace::raiseClientWithinApplication( Client* c )
|
|||
{
|
||||
if ( !c )
|
||||
return;
|
||||
if( c->isTopMenu())
|
||||
return;
|
||||
|
||||
c->cancelAutoRaise();
|
||||
|
||||
|
@ -397,6 +405,8 @@ void Workspace::lowerClientRequest( Client* c, NET::RequestSource src, Time /*ti
|
|||
|
||||
void Workspace::restackClientUnderActive( Client* c )
|
||||
{
|
||||
if( c->isTopMenu())
|
||||
return;
|
||||
if( !active_client || active_client == c )
|
||||
{
|
||||
raiseClient( c );
|
||||
|
|
Loading…
Reference in a new issue