Let's use KGlobalSettings' drag and drop pixel distance instead of a hardcoded value when starting to move a window.

svn path=/trunk/KDE/kdebase/workspace/; revision=1134234
icc-effect-5.14.5
Martin Gräßlin 2010-06-03 18:04:36 +00:00
parent 02c8c78c21
commit ad3753c944
1 changed files with 2 additions and 1 deletions

View File

@ -44,6 +44,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <QX11Info>
#include <kephal/screens.h>
#include <KDE/KGlobalSettings>
namespace KWin
{
@ -3006,7 +3007,7 @@ void Client::handleMoveResize( int x, int y, int x_root, int y_root )
if ( !moveResizeMode )
{
QPoint p( QPoint( x - padding_left, y - padding_top ) - moveOffset );
if (p.manhattanLength() >= 6)
if (p.manhattanLength() >= KGlobalSettings::dndEventDelay())
{
if( !startMoveResize())
{