[kompmgr] added option to remove shadows on resizes
svn path=/trunk/kdebase/kwin/; revision=380837
This commit is contained in:
parent
1fb511965f
commit
2e82e1fc66
1 changed files with 6 additions and 2 deletions
|
@ -2124,7 +2124,9 @@ bool Client::startMoveResize()
|
|||
initialMoveResizeGeom = moveResizeGeom = geometry();
|
||||
checkUnrestrictedMoveResize();
|
||||
// rule out non opaque windows from useless translucency settings, maybe resizes?
|
||||
if (/*isMove() && */rules()->checkMoveResizeMode( options->moveMode ) == Options::Opaque){
|
||||
if (isResize() && options->removeShadowsOnResize)
|
||||
setShadowSize(0);
|
||||
if (rules()->checkMoveResizeMode( options->moveMode ) == Options::Opaque){
|
||||
savedOpacity_ = opacity_;
|
||||
setOpacity(options->translucentMovingWindows, options->movingWindowOpacity);
|
||||
}
|
||||
|
@ -2160,8 +2162,10 @@ void Client::finishMoveResize( bool cancel )
|
|||
void Client::leaveMoveResize()
|
||||
{
|
||||
// rule out non opaque windows from useless translucency settings, maybe resizes?
|
||||
if (/*isMove() && */rules()->checkMoveResizeMode( options->moveMode ) == Options::Opaque)
|
||||
if (rules()->checkMoveResizeMode( options->moveMode ) == Options::Opaque)
|
||||
setOpacity(true, savedOpacity_);
|
||||
if (isResize() && options->removeShadowsOnResize)
|
||||
updateShadowSize();
|
||||
clearbound();
|
||||
if (geometryTip)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue