diff options
author | runge <runge> | 2007-12-16 02:26:38 +0000 |
---|---|---|
committer | runge <runge> | 2007-12-16 02:26:38 +0000 |
commit | 3d0bd73627f7aa19d45488eeee49781ca9faa0f8 (patch) | |
tree | 6afda9c91d0be9cf6be2d0db0a094c0e76c38097 /x11vnc/macosxCGS.c | |
parent | 2689647d6c7a9ab9c88faacf5dbc0200e9bc4a24 (diff) | |
download | libtdevnc-3d0bd73627f7aa19d45488eeee49781ca9faa0f8.tar.gz libtdevnc-3d0bd73627f7aa19d45488eeee49781ca9faa0f8.zip |
x11vnc: fix find_display and usleep() prototype on macosx.
-display console and check DISPLAY /tmp/...:0 on macosx.
implement -noxinerama.
Diffstat (limited to 'x11vnc/macosxCGS.c')
-rw-r--r-- | x11vnc/macosxCGS.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/x11vnc/macosxCGS.c b/x11vnc/macosxCGS.c index 35cb9de..176a336 100644 --- a/x11vnc/macosxCGS.c +++ b/x11vnc/macosxCGS.c @@ -135,7 +135,11 @@ int macosxCGS_find_index(int w) { return -1; } +#if 0 extern void usleep(unsigned long usec); +#else +extern int usleep(useconds_t usec); +#endif int macosxCGS_follow_animation_win(int win, int idx, int grow) { double t = dnow(); @@ -496,7 +500,9 @@ void macosxGCS_initpb(void) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; pblock = [[NSLock alloc] init]; if (![NSPasteboard generalPasteboard]) { - macosx_log("macosxGCS_initpb: pasteboard inaccessible.\n"); + macosx_log("macosxGCS_initpb: **PASTEBOARD INACCESSIBLE**.\n"); + macosx_log("macosxGCS_initpb: Clipboard exchange will NOT work.\n"); + macosx_log("macosxGCS_initpb: Start x11vnc *inside* Aqua for Clipboard.\n"); pbcnt = 0; pbstr = [[NSString alloc] initWithString:@"\e<PASTEBOARD INACCESSIBLE>\e"]; } |