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
This commit is contained in:
parent
02c8c78c21
commit
ad3753c944
1 changed files with 2 additions and 1 deletions
|
@ -44,6 +44,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#include <QX11Info>
|
#include <QX11Info>
|
||||||
|
|
||||||
#include <kephal/screens.h>
|
#include <kephal/screens.h>
|
||||||
|
#include <KDE/KGlobalSettings>
|
||||||
|
|
||||||
namespace KWin
|
namespace KWin
|
||||||
{
|
{
|
||||||
|
@ -3006,7 +3007,7 @@ void Client::handleMoveResize( int x, int y, int x_root, int y_root )
|
||||||
if ( !moveResizeMode )
|
if ( !moveResizeMode )
|
||||||
{
|
{
|
||||||
QPoint p( QPoint( x - padding_left, y - padding_top ) - moveOffset );
|
QPoint p( QPoint( x - padding_left, y - padding_top ) - moveOffset );
|
||||||
if (p.manhattanLength() >= 6)
|
if (p.manhattanLength() >= KGlobalSettings::dndEventDelay())
|
||||||
{
|
{
|
||||||
if( !startMoveResize())
|
if( !startMoveResize())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue