From 3d0bd73627f7aa19d45488eeee49781ca9faa0f8 Mon Sep 17 00:00:00 2001 From: runge Date: Sun, 16 Dec 2007 02:26:38 +0000 Subject: x11vnc: fix find_display and usleep() prototype on macosx. -display console and check DISPLAY /tmp/...:0 on macosx. implement -noxinerama. --- x11vnc/macosxCGS.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'x11vnc/macosxCGS.c') 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\e"]; } -- cgit v1.2.1