Don't allow quick tiling for windows that cannot be resized.

svn path=/trunk/KDE/kdebase/workspace/; revision=1072080
This commit is contained in:
Lucas Murray 2010-01-09 11:48:54 +00:00
parent c8e9de08f6
commit b90acadcc9

View file

@ -1455,7 +1455,7 @@ void Client::checkQuickTilingMaximizationZones( int xroot, int yroot )
setElectricBorderMaximizing( true );
return;
}
if( options->electricBorderMaximize() &&
else if( options->electricBorderMaximize() &&
yroot <= screen->geom().y() + 5 && isMaximizable() )
{
setElectricBorderMode( ElectricMaximizeMode );
@ -1493,7 +1493,7 @@ bool Client::motionNotifyEvent( Window w, int /*state*/, int x, int y, int x_roo
if( !waitingMotionEvent() )
{
handleMoveResize( x, y, x_root, y_root );
if( isMove() )
if( isMove() && isResizable() )
checkQuickTilingMaximizationZones( x_root, y_root );
}
return true;