[kompmgr] added option to remove shadows on resizes

svn path=/trunk/kdebase/kwin/; revision=380837
This commit is contained in:
Thomas Lübking 2005-01-21 16:15:05 +00:00
parent 1fb511965f
commit 2e82e1fc66

View file

@ -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)
{