diff options
author | Michael Meskes <meskes@debian.org> | 2009-11-19 17:48:11 +0100 |
---|---|---|
committer | Michael Meskes <meskes@debian.org> | 2009-11-19 17:48:11 +0100 |
commit | fd892711c6bdc0ef96b6b3ea13b668cb2a38196e (patch) | |
tree | e6ec126da2bcd6a490d5661118630edf983580ec /src/VBox/GuestHost/SharedClipboard/x11-clipboard.cpp | |
parent | 8dc3a7e38d0783262b1aa8c3462e7359d8996d98 (diff) | |
parent | b35715c68a1bec309bc1990353e35c20a21d5c47 (diff) | |
download | virtualbox-debian/3.0.10-dfsg-2bpo50+1.tar.gz |
Merge branch 'master' into lennydebian/3.0.10-dfsg-2bpo50+1
Conflicts:
debian/changelog
Diffstat (limited to 'src/VBox/GuestHost/SharedClipboard/x11-clipboard.cpp')
-rw-r--r-- | src/VBox/GuestHost/SharedClipboard/x11-clipboard.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/VBox/GuestHost/SharedClipboard/x11-clipboard.cpp b/src/VBox/GuestHost/SharedClipboard/x11-clipboard.cpp index 246c32904..481966c33 100644 --- a/src/VBox/GuestHost/SharedClipboard/x11-clipboard.cpp +++ b/src/VBox/GuestHost/SharedClipboard/x11-clipboard.cpp @@ -639,7 +639,11 @@ static int clipInit(CLIPBACKEND *pCtx) } #ifndef TESTCASE if (RT_SUCCESS(rc)) + { rc = clipLoadXFixes(pDisplay, pCtx); + if (RT_FAILURE(rc)) + LogRel(("Shared clipboard: failed to load the XFIXES extension.\n")); + } #endif if (RT_SUCCESS(rc)) { @@ -681,11 +685,15 @@ static int clipInit(CLIPBACKEND *pCtx) if ( RT_SUCCESS(rc) && (fcntl(pCtx->wakeupPipeRead, F_SETFL, O_NONBLOCK) != 0)) rc = RTErrConvertFromErrno(errno); + if (RT_FAILURE(rc)) + LogRel(("Shared clipboard: failed to setup the termination mechanism.\n")); } else rc = RTErrConvertFromErrno(errno); if (RT_FAILURE(rc)) clipUninit(pCtx); + if (RT_FAILURE(rc)) + LogRel(("Shared clipboard: initialisation failed: %Rrc\n", rc)); return rc; } @@ -764,7 +772,10 @@ int ClipStartX11(CLIPBACKEND *pCtx, bool grab) rc = RTThreadCreate(&pCtx->thread, clipEventThread, pCtx, 0, RTTHREADTYPE_IO, RTTHREADFLAGS_WAITABLE, "SHCLIP"); if (RT_FAILURE(rc)) - LogRel(("Failed to initialise the shared clipboard X11 backend.\n")); + { + LogRel(("Failed to start the shared clipboard thread.\n")); + clipUninit(pCtx); + } } #endif return rc; |