else if (!wfc->context.settings->Decorations)
{
SetWindowLongPtr(wfc->hwnd, GWL_STYLE, WS_CHILD);
- /* Now resize to get full canvas size and room for caption and borders */
- SetWindowPos(wfc->hwnd, HWND_TOP, 0, 0, settings->DesktopWidth,
- settings->DesktopHeight, SWP_FRAMECHANGED);
- wf_update_canvas_diff(wfc);
- SetWindowPos(wfc->hwnd, HWND_TOP, -1, -1, settings->DesktopWidth + wfc->diff.x,
- settings->DesktopHeight + wfc->diff.y, SWP_NOMOVE | SWP_FRAMECHANGED);
+ if (settings->EmbeddedWindow)
+ {
+ wf_update_canvas_diff(wfc);
+ }
+ else
+ {
+ /* Now resize to get full canvas size and room for caption and borders */
+ SetWindowPos(wfc->hwnd, HWND_TOP, 0, 0, settings->DesktopWidth,
+ settings->DesktopHeight, SWP_FRAMECHANGED);
+ wf_update_canvas_diff(wfc);
+ SetWindowPos(wfc->hwnd, HWND_TOP, -1, -1, settings->DesktopWidth + wfc->diff.x,
+ settings->DesktopHeight + wfc->diff.y, SWP_NOMOVE | SWP_FRAMECHANGED);
+ }
}
else
{