summaryrefslogtreecommitdiffstats
path: root/x11vnc/pointer.c
diff options
context:
space:
mode:
authorrunge <[email protected]>2010-12-21 12:04:02 -0500
committerrunge <[email protected]>2010-12-21 12:04:02 -0500
commit365a22c63cb292ea494f39ebc48a37e322e5eb14 (patch)
treeca6e87ab396ee00a837b09b2c6cede62aec69dae /x11vnc/pointer.c
parentd4fabc217e8cd02aca4d248229bb8a030b2bbfe2 (diff)
downloadlibtdevnc-365a22c63cb292ea494f39ebc48a37e322e5eb14.tar.gz
libtdevnc-365a22c63cb292ea494f39ebc48a37e322e5eb14.zip
x11vnc: touchscreen uinput support and Java viewer mousewheel support. See x11vnc/ChangeLog for rest.
Diffstat (limited to 'x11vnc/pointer.c')
-rw-r--r--x11vnc/pointer.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/x11vnc/pointer.c b/x11vnc/pointer.c
index c57d2d7..f2995c3 100644
--- a/x11vnc/pointer.c
+++ b/x11vnc/pointer.c
@@ -620,24 +620,24 @@ static void pipe_pointer(int mask, int x, int y, rfbClientPtr client) {
if (mask == button_mask) {
strcat(hint, "None");
} else {
- int i, old, new, m = 1, cnt = 0;
+ int i, old, newb, m = 1, cnt = 0;
for (i=0; i<MAX_BUTTONS; i++) {
char s[20];
old = button_mask & m;
- new = mask & m;
+ newb = mask & m;
m = m << 1;
- if (old == new) {
+ if (old == newb) {
continue;
}
if (hint[0] != '\0') {
strcat(hint, ",");
}
- if (new && ! old) {
+ if (newb && ! old) {
sprintf(s, "ButtonPress-%d", i+1);
cnt++;
- } else if (! new && old) {
+ } else if (! newb && old) {
sprintf(s, "ButtonRelease-%d", i+1);
cnt++;
}