diff options
author | runge <runge> | 2006-11-13 15:33:00 +0000 |
---|---|---|
committer | runge <runge> | 2006-11-13 15:33:00 +0000 |
commit | 4a83f87609b9d53b2983806be58ccd02498a5cd3 (patch) | |
tree | a79c96930a97fb162edd1765adece43425f8db8a /x11vnc/pointer.c | |
parent | 5f9693d4a2c511f8f2ea069373807c5f36ac1459 (diff) | |
download | libtdevnc-4a83f87609b9d53b2983806be58ccd02498a5cd3.tar.gz libtdevnc-4a83f87609b9d53b2983806be58ccd02498a5cd3.zip |
x11vnc: Native Mac OS X support.
Diffstat (limited to 'x11vnc/pointer.c')
-rw-r--r-- | x11vnc/pointer.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/x11vnc/pointer.c b/x11vnc/pointer.c index a0bd07e..9aa55e8 100644 --- a/x11vnc/pointer.c +++ b/x11vnc/pointer.c @@ -547,6 +547,8 @@ static void pipe_pointer(int mask, int x, int y, rfbClientPtr client) { console_pointer_command(mask, x, y, client); } else if (pipeinput_int == PIPEINPUT_UINPUT) { uinput_pointer_command(mask, x, y, client); + } else if (pipeinput_int == PIPEINPUT_MACOSX) { + macosx_pointer_command(mask, x, y, client); } if (pipeinput_fh == NULL) { return; @@ -666,7 +668,7 @@ void pointer(int mask, int x, int y, rfbClientPtr client) { if (! pipeinput_tee) { if (! view_only || raw_fb) { /* raw_fb hack */ got_user_input++; - got_keyboard_input++; + got_pointer_input++; last_pointer_client = client; } if (input.motion) { @@ -980,6 +982,9 @@ if (0) fprintf(stderr, "initialize_pipeinput: %s -- %s\n", pipeinput_str, p); pipeinput_int = PIPEINPUT_UINPUT; initialize_uinput(); return; + } else if (strstr(p, "MACOSX") == p) { + pipeinput_int = PIPEINPUT_MACOSX; + return; } set_child_info(); |