summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugen Feller <eugen.feller@uni-duesseldorf.de>2007-11-19 16:27:17 +0100
committerEugen Feller <eugen.feller@uni-duesseldorf.de>2007-11-19 16:27:17 +0100
commit99bcd10c7a57a4271973ccb8e40e7bc3e554d671 (patch)
tree0caeb4706c8bee056cac2c5dce602c2bb53a1d8b
parentf7a5e41a71a8cea87b40edd91bed65d4ed1cc3a7 (diff)
downloadsmackpad-99bcd10c7a57a4271973ccb8e40e7bc3e554d671.tar.gz
smackpad-99bcd10c7a57a4271973ccb8e40e7bc3e554d671.tar.bz2
rotate direction fix
-rw-r--r--smackpad.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/smackpad.c b/smackpad.c
index 63aa557..9384b2c 100644
--- a/smackpad.c
+++ b/smackpad.c
@@ -60,7 +60,7 @@ static void* smackpadGetPosition (void *data);
static void smackpadRotate (int dx, int dy);
static void smackpadUpdateSensibilityRate (CompDisplay *d, CompOption *opt, SmackpadDisplayOptions num);
static Bool smackpadInitiate (CompDisplay *d, CompAction *ac, CompActionState state, CompOption *option, int nOption);
-static Bool smackpadReadHDAPSData (Bool calibrate,smackpadPosition *position);
+static Bool smackpadReadHDAPSData (Bool calibrate, smackpadPosition *position);
static Bool smackpadInitHDAPS (void);
static CompBool smackpadInitObject (CompPlugin *p, CompObject *o);
static Bool smackpadInitDisplay (CompPlugin *p, CompDisplay *d);
@@ -68,7 +68,8 @@ static Bool smackpadInitScreen (CompPlugin *p, CompScreen *s);
static void smackpadFini (CompPlugin *p);
static Bool
-smackpadReadHDAPSData (Bool calibrate,smackpadPosition *position)
+smackpadReadHDAPSData (Bool calibrate,
+ smackpadPosition *position)
{
char buf[255];
@@ -94,7 +95,7 @@ smackpadReadHDAPSData (Bool calibrate,smackpadPosition *position)
static void
smackpadRotate (int dx,
- int dy)
+ int dy)
{
XEvent xev;
xev.xclient.type = ClientMessage;
@@ -118,10 +119,10 @@ smackpadRotateDesktop (smackDirection direction)
switch(direction)
{
case LEFT:
- smackpadRotate(1,0);
+ smackpadRotate(-1,0);
break;
case RIGHT:
- smackpadRotate(-1,0);
+ smackpadRotate(1,0);
break;
default:
break;