Be more strict.

svn path=/trunk/KDE/kdebase/workspace/; revision=1031996
This commit is contained in:
Lucas Murray 2009-10-06 16:04:16 +00:00
parent e5d176b90b
commit 711879a993

View file

@ -2358,7 +2358,8 @@ bool Workspace::electricBorderEvent( XEvent* e )
{
if( e->type == EnterNotify )
{
if( movingClient && e->xcrossing.window == movingClient->moveResizeGrabWindow() )
if( movingClient && movingClient->isElectricBorderMaximizing() &&
e->xcrossing.window == movingClient->moveResizeGrabWindow() )
{ // Cancel the quick tiling/maximization action when the user moves away from the edge.
// This event isn't from the border window; it came from the grab window.
movingClient->setElectricBorderMaximizing( false );