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;
|
autoRaiseTimer = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( shade_mode == ShadeActivated )
|
if( !active && shade_mode == ShadeActivated )
|
||||||
setShade( ShadeNormal );
|
setShade( ShadeNormal );
|
||||||
|
|
||||||
StackingUpdatesBlocker blocker( workspace());
|
StackingUpdatesBlocker blocker( workspace());
|
||||||
|
|
28
events.cpp
28
events.cpp
|
@ -587,19 +587,19 @@ void Client::mapRequestEvent( XMapRequestEvent* e )
|
||||||
// also copied in clientMessage()
|
// also copied in clientMessage()
|
||||||
if( isMinimized())
|
if( isMinimized())
|
||||||
unminimize();
|
unminimize();
|
||||||
else if( isShade())
|
if( isShade())
|
||||||
setShade( ShadeNone );
|
setShade( ShadeNone );
|
||||||
else // it's on another virtual desktop
|
if( !isOnCurrentDesktop())
|
||||||
{
|
{
|
||||||
if( workspace()->allowClientActivation( this ))
|
if( workspace()->allowClientActivation( this ))
|
||||||
workspace()->activateClient( this );
|
workspace()->activateClient( this );
|
||||||
else
|
else
|
||||||
demandAttention();
|
demandAttention();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case NormalState:
|
case NormalState:
|
||||||
// TODO fake MapNotify?
|
// TODO fake MapNotify?
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -668,9 +668,9 @@ void Client::clientMessageEvent( XClientMessageEvent* e )
|
||||||
{ // copied from mapRequest()
|
{ // copied from mapRequest()
|
||||||
if( isMinimized())
|
if( isMinimized())
|
||||||
unminimize();
|
unminimize();
|
||||||
else if( isShade())
|
if( isShade())
|
||||||
setShade( ShadeNone );
|
setShade( ShadeNone );
|
||||||
else // it's on another virtual desktop
|
if( !isOnCurrentDesktop())
|
||||||
{
|
{
|
||||||
if( workspace()->allowClientActivation( this ))
|
if( workspace()->allowClientActivation( this ))
|
||||||
workspace()->activateClient( 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
|
// ShadeHover or ShadeActive, ShadeNormal was already avoided above
|
||||||
if ( mode != Center && shade_mode != ShadeNone )
|
if ( mode != Center && shade_mode != ShadeNone ) // SHADE
|
||||||
setShade( ShadeNone );
|
setShade( ShadeNone );
|
||||||
|
|
||||||
QPoint globalPos( x_root, y_root );
|
QPoint globalPos( x_root, y_root );
|
||||||
|
|
Loading…
Reference in a new issue