summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSung-jae Park <nicesj.park@samsung.com>2013-03-21 14:01:43 (GMT)
committerSung-jae Park <nicesj.park@samsung.com>2013-03-21 14:01:43 (GMT)
commit5e1f38bc580faf7846fe2ffb5bbf37f6cb1acd2a (patch)
tree191f3899025417c76449e708312fb64d7943d8c7
parentb20f2aab8859ce23869a36868272378e9e0ae674 (diff)
downloaddata-provider-master-5e1f38bc580faf7846fe2ffb5bbf37f6cb1acd2a.zip
data-provider-master-5e1f38bc580faf7846fe2ffb5bbf37f6cb1acd2a.tar.gz
data-provider-master-5e1f38bc580faf7846fe2ffb5bbf37f6cb1acd2a.tar.bz2
Fix the bug of click event handling code
Change-Id: Ia63630a1e18e69991f498c6a448ae0c69f429954
-rw-r--r--src/server.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server.c b/src/server.c
index 973c61e..8f9ec77 100644
--- a/src/server.c
+++ b/src/server.c
@@ -308,8 +308,8 @@ static struct packet *client_clicked(pid_t pid, int handle, const struct packet
const char *id;
const char *event;
double timestamp;
- int x;
- int y;
+ double x;
+ double y;
int ret;
struct inst_info *inst;
@@ -320,14 +320,14 @@ static struct packet *client_clicked(pid_t pid, int handle, const struct packet
goto out;
}
- ret = packet_get(packet, "sssdii", &pkgname, &id, &event, &timestamp, &x, &y);
+ ret = packet_get(packet, "sssddd", &pkgname, &id, &event, &timestamp, &x, &y);
if (ret != 6) {
ErrPrint("Parameter is not matched\n");
ret = -EINVAL;
goto out;
}
- DbgPrint("pid[%d] pkgname[%s] id[%s] event[%s] timestamp[%lf] x[%d] y[%d]\n", pid, pkgname, id, event, timestamp, x, y);
+ DbgPrint("pid[%d] pkgname[%s] id[%s] event[%s] timestamp[%lf] x[%lf] y[%lf]\n", pid, pkgname, id, event, timestamp, x, y);
/*!
* \NOTE: