From 365a22c63cb292ea494f39ebc48a37e322e5eb14 Mon Sep 17 00:00:00 2001 From: runge Date: Tue, 21 Dec 2010 12:04:02 -0500 Subject: x11vnc: touchscreen uinput support and Java viewer mousewheel support. See x11vnc/ChangeLog for rest. --- x11vnc/macosxCG.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'x11vnc/macosxCG.c') diff --git a/x11vnc/macosxCG.c b/x11vnc/macosxCG.c index 4f1fd0a..a465493 100644 --- a/x11vnc/macosxCG.c +++ b/x11vnc/macosxCG.c @@ -87,7 +87,9 @@ int dragum(void) { CGPoint loc; CGDirectDisplayID displayID2 = kCGDirectMainDisplay; +#ifdef X11VNC_MACOSX_USE_GETMAINDEVICE (void) GetMainDevice(); +#endif for (i=0; i< 50; i++) { usleep(1000*100); @@ -140,7 +142,9 @@ void macosxCG_init(void) { #endif displayID = kCGDirectMainDisplay; +#ifdef X11VNC_MACOSX_USE_GETMAINDEVICE (void) GetMainDevice(); +#endif CGSetLocalEventsSuppressionInterval(0.0); CGSetLocalEventsFilterDuringSupressionState( -- cgit v1.2.3