More shade related changes.
svn path=/trunk/kdebase/kwin/; revision=257727
This commit is contained in:
parent
d45a853dd4
commit
984c76f0c1
3 changed files with 16 additions and 16 deletions
|
@ -712,7 +712,7 @@ void Client::setActive( bool act)
|
|||
autoRaiseTimer = 0;
|
||||
}
|
||||
|
||||
if( shade_mode == ShadeActivated )
|
||||
if( !active && shade_mode == ShadeActivated )
|
||||
setShade( ShadeNormal );
|
||||
|
||||
StackingUpdatesBlocker blocker( workspace());
|
||||
|
|
28
events.cpp
28
events.cpp
|
@ -587,19 +587,19 @@ void Client::mapRequestEvent( XMapRequestEvent* e )
|
|||
// also copied in clientMessage()
|
||||
if( isMinimized())
|
||||
unminimize();
|
||||
else if( isShade())
|
||||
if( isShade())
|
||||
setShade( ShadeNone );
|
||||
else // it's on another virtual desktop
|
||||
{
|
||||
if( workspace()->allowClientActivation( this ))
|
||||
workspace()->activateClient( this );
|
||||
else
|
||||
demandAttention();
|
||||
}
|
||||
break;
|
||||
case NormalState:
|
||||
// TODO fake MapNotify?
|
||||
break;
|
||||
if( !isOnCurrentDesktop())
|
||||
{
|
||||
if( workspace()->allowClientActivation( this ))
|
||||
workspace()->activateClient( this );
|
||||
else
|
||||
demandAttention();
|
||||
}
|
||||
break;
|
||||
case NormalState:
|
||||
// TODO fake MapNotify?
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -668,9 +668,9 @@ void Client::clientMessageEvent( XClientMessageEvent* e )
|
|||
{ // copied from mapRequest()
|
||||
if( isMinimized())
|
||||
unminimize();
|
||||
else if( isShade())
|
||||
if( isShade())
|
||||
setShade( ShadeNone );
|
||||
else // it's on another virtual desktop
|
||||
if( !isOnCurrentDesktop())
|
||||
{
|
||||
if( workspace()->allowClientActivation( this ))
|
||||
workspace()->activateClient( this );
|
||||
|
|
|
@ -1456,7 +1456,7 @@ void Client::handleMoveResize( int x, int y, int x_root, int y_root )
|
|||
}
|
||||
|
||||
// ShadeHover or ShadeActive, ShadeNormal was already avoided above
|
||||
if ( mode != Center && shade_mode != ShadeNone )
|
||||
if ( mode != Center && shade_mode != ShadeNone ) // SHADE
|
||||
setShade( ShadeNone );
|
||||
|
||||
QPoint globalPos( x_root, y_root );
|
||||
|
|
Loading…
Reference in a new issue