~mc-return/compiz/compiz.merge-src-header-files-cleanup

« back to all changes in this revision

Viewing changes to plugins/expo/src/click_threshold/src/click-threshold.cpp

  • Committer: MC Return
  • Date: 2013-06-20 05:56:13 UTC
  • mfrom: (3724.2.16 0.9.10)
  • Revision ID: mc.return@gmx.net-20130620055613-8dp00nmw2jpm3ptu
Merged latest lp:compiz and fixed conflicts

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include "click-threshold.h"
26
26
#include <stdlib.h>
27
27
 
28
 
static const int DND_THRESHOLD = 5;
 
28
static const unsigned short DND_THRESHOLD = 5;
29
29
 
30
30
bool
31
 
compiz::expo::clickMovementInThreshold(int previousX, int previousY,
32
 
                                       int currentX, int currentY)
 
31
compiz::expo::clickMovementInThreshold (int previousX,
 
32
                                        int previousY,
 
33
                                        int currentX,
 
34
                                        int currentY)
33
35
{
34
36
    if ((abs (previousX - currentX) <= DND_THRESHOLD) &&
35
37
        (abs (previousY - currentY) <= DND_THRESHOLD))