xfreerdp: fail RAIL window positions (relative to work area)

This commit is contained in:
Marc-André Moreau 2011-08-17 23:26:12 -04:00
parent eb02b578a5
commit 49b1fa25a0

View File

@ -47,10 +47,14 @@ void xf_rail_paint(xfInfo* xfi, rdpRail* rail)
void xf_rail_CreateWindow(rdpRail* rail, rdpWindow* window)
{
xfInfo* xfi;
xfWindow* xfw;
xfi = (xfInfo*) rail->extra;
xfw = xf_CreateWindow((xfInfo*) rail->extra,
window->windowOffsetX, window->windowOffsetY,
window->windowOffsetX + xfi->workArea.x,
window->windowOffsetY + xfi->workArea.y,
window->windowWidth, window->windowHeight, window->title);
window->extra = (void*) xfw;
@ -59,11 +63,15 @@ void xf_rail_CreateWindow(rdpRail* rail, rdpWindow* window)
void xf_rail_MoveWindow(rdpRail* rail, rdpWindow* window)
{
xfInfo* xfi;
xfWindow* xfw;
xfi = (xfInfo*) rail->extra;
xfw = (xfWindow*) window->extra;
xf_MoveWindow((xfInfo*) rail->extra, xfw,
window->windowOffsetX, window->windowOffsetY,
window->windowOffsetX + xfi->workArea.x,
window->windowOffsetY + xfi->workArea.y,
window->windowWidth, window->windowHeight);
}