if (GetTickCount64() - xfDisp->lastSentDate < RESIZE_MIN_DELAY)
return TRUE;
- xfDisp->lastSentDate = GetTickCount64();
-
if (!xf_disp_settings_changed(xfDisp))
return TRUE;
+ xfDisp->lastSentDate = GetTickCount64();
if (xfc->fullscreen && (settings->MonitorCount > 0))
{
if (xf_disp_sendLayout(xfDisp->disp, settings->MonitorDefArray, settings->MonitorCount) !=
layout.Orientation = settings->DesktopOrientation;
layout.DesktopScaleFactor = settings->DesktopScaleFactor;
layout.DeviceScaleFactor = settings->DeviceScaleFactor;
- layout.PhysicalWidth = xfDisp->targetWidth;
- layout.PhysicalHeight = xfDisp->targetHeight;
+ layout.PhysicalWidth = xfDisp->targetWidth / 75 * 25.4f;
+ layout.PhysicalHeight = xfDisp->targetHeight / 75 * 25.4f;
if (IFCALLRESULT(CHANNEL_RC_OK, xfDisp->disp->SendMonitorLayout, xfDisp->disp, 1,
&layout) != CHANNEL_RC_OK)
xfDisp->waitingResize = FALSE;
- if (xfDisp->activated && !settings->Fullscreen)
+ if (xfDisp->activated && !xfc->fullscreen)
{
xf_disp_set_window_resizable(xfDisp);