diff options
author | runge <runge@karlrunge.com> | 2010-12-21 12:04:02 -0500 |
---|---|---|
committer | runge <runge@karlrunge.com> | 2010-12-21 12:04:02 -0500 |
commit | 365a22c63cb292ea494f39ebc48a37e322e5eb14 (patch) | |
tree | ca6e87ab396ee00a837b09b2c6cede62aec69dae /x11vnc/macosxCG.c | |
parent | d4fabc217e8cd02aca4d248229bb8a030b2bbfe2 (diff) | |
download | libvncserver-365a22c63cb292ea494f39ebc48a37e322e5eb14.zip libvncserver-365a22c63cb292ea494f39ebc48a37e322e5eb14.tar.gz |
x11vnc: touchscreen uinput support and Java viewer mousewheel support. See x11vnc/ChangeLog for rest.
Diffstat (limited to 'x11vnc/macosxCG.c')
-rw-r--r-- | x11vnc/macosxCG.c | 4 |
1 files changed, 4 insertions, 0 deletions
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( |