From 4a83f87609b9d53b2983806be58ccd02498a5cd3 Mon Sep 17 00:00:00 2001 From: runge Date: Mon, 13 Nov 2006 15:33:00 +0000 Subject: x11vnc: Native Mac OS X support. --- x11vnc/pointer.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'x11vnc/pointer.c') 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(); -- cgit v1.2.3