diff options
author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2014-02-05 10:26:34 +0000 |
---|---|---|
committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2014-02-05 10:26:34 +0000 |
commit | 4151ce5c12c462712b2d98a7c75d445fa4576b04 (patch) | |
tree | 5aa03c2d7a91893caa2ea9e9a741ee9a1b5d28bf /src/VBox/Additions/x11/VBoxClient/seamless-x11.cpp | |
parent | f807b0d4519c3febe2c007456b9426db88be2533 (diff) | |
download | VirtualBox-svn-4151ce5c12c462712b2d98a7c75d445fa4576b04.tar.gz |
Additions/x11/VBoxClient: removed some unnecessary abstraction.
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@50324 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/Additions/x11/VBoxClient/seamless-x11.cpp')
-rw-r--r-- | src/VBox/Additions/x11/VBoxClient/seamless-x11.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/VBox/Additions/x11/VBoxClient/seamless-x11.cpp b/src/VBox/Additions/x11/VBoxClient/seamless-x11.cpp index 7c7d8a34294..826a75cb5f8 100644 --- a/src/VBox/Additions/x11/VBoxClient/seamless-x11.cpp +++ b/src/VBox/Additions/x11/VBoxClient/seamless-x11.cpp @@ -23,7 +23,7 @@ #include <iprt/vector.h> #include <VBox/log.h> -#include "seamless-guest.h" +#include "seamless-x11.h" #include <X11/Xatom.h> #include <X11/Xmu/WinUtil.h> @@ -70,12 +70,12 @@ static unsigned char *XXGetProperty (Display *aDpy, Window aWnd, Atom aPropType, * * @returns true if it can handle seamless, false otherwise */ -int VBoxGuestSeamlessX11::init(VBoxGuestSeamlessObserver *pObserver) +int VBoxGuestSeamlessX11::init(VBoxGuestSeamlessHostInt *pHost) { int rc = VINF_SUCCESS; LogRelFlowFunc(("\n")); - if (0 != mObserver) /* Assertion */ + if (0 != mHost) /* Assertion */ { LogRel(("VBoxClient: ERROR: attempt to initialise seamless guest object twice!\n")); return VERR_INTERNAL_ERROR; @@ -85,7 +85,7 @@ int VBoxGuestSeamlessX11::init(VBoxGuestSeamlessObserver *pObserver) LogRel(("VBoxClient: seamless guest object failed to acquire a connection to the display.\n")); return VERR_ACCESS_DENIED; } - mObserver = pObserver; + mHost = pHost; LogRelFlowFunc(("returning %Rrc\n", rc)); return rc; } @@ -298,7 +298,7 @@ void VBoxGuestSeamlessX11::nextEvent(void) if (mChanged) { updateRects(); - mObserver->notify(); + mHost->notify(mpRects, mcRects); } mChanged = false; XNextEvent(mDisplay, &event); |