mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-12-04 15:23:32 +08:00
xfreerdp: fail RAIL window positions (relative to work area)
This commit is contained in:
parent
eb02b578a5
commit
49b1fa25a0
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user