tstSeamlessX11.cpp revision e64031e20c39650a7bc902a3e1aba613b9415dee
f89940742f5d14dde79b69b98a414dd7b7f585c7Jan Friedel * Linux seamless guest additions simulator in host.
f89940742f5d14dde79b69b98a414dd7b7f585c7Jan Friedel * Copyright (C) 2007 Oracle Corporation
f89940742f5d14dde79b69b98a414dd7b7f585c7Jan Friedel * This file is part of VirtualBox Open Source Edition (OSE), as
f89940742f5d14dde79b69b98a414dd7b7f585c7Jan Friedel * available from http://www.virtualbox.org. This file is free software;
f89940742f5d14dde79b69b98a414dd7b7f585c7Jan Friedel * you can redistribute it and/or modify it under the terms of the GNU
f89940742f5d14dde79b69b98a414dd7b7f585c7Jan Friedel * General Public License (GPL) as published by the Free Software
f89940742f5d14dde79b69b98a414dd7b7f585c7Jan Friedel * Foundation, in version 2 as it comes in the "COPYING" file of the
f89940742f5d14dde79b69b98a414dd7b7f585c7Jan Friedel * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
f89940742f5d14dde79b69b98a414dd7b7f585c7Jan Friedel * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
f89940742f5d14dde79b69b98a414dd7b7f585c7Jan Friedelint VbglR3SeamlessSendRects(uint32_t cRects, PRTRECT pRects)
f89940742f5d14dde79b69b98a414dd7b7f585c7Jan Friedel std::cout << "Received rectangle update (" << cRects << " rectangles):" << std::endl;
f89940742f5d14dde79b69b98a414dd7b7f585c7Jan Friedel for (unsigned i = 0; i < cRects; ++i)
f89940742f5d14dde79b69b98a414dd7b7f585c7Jan Friedel std::cout << " xLeft: " << pRects[i].xLeft << " yTop: " << pRects[i].yTop
f89940742f5d14dde79b69b98a414dd7b7f585c7Jan Friedel << " xRight: " << pRects[i].xRight << " yBottom: " << pRects[i].yBottom
f89940742f5d14dde79b69b98a414dd7b7f585c7Jan Friedel return true;
static bool active = false;
if (!active)
active = true;
int VbglR3InterruptEventWaits(void)
RTR3Init();
if (0 == XInitThreads())
return rc;