Sysinfo: Fix fullscreen padding
@@ -576,13 +576,15 @@ VOID PhSipOnCommand(
GetMonitorInfo(MonitorFromWindow(PhSipWindow, MONITOR_DEFAULTTOPRIMARY), &info)
)
{
+ ULONG padding = CurrentParameters.WindowPadding / 2;
PhSetWindowStyle(PhSipWindow, WS_OVERLAPPEDWINDOW, 0);
SetWindowPos(
PhSipWindow,
- HWND_TOP,
- info.rcMonitor.left, info.rcMonitor.top,
- info.rcMonitor.right - info.rcMonitor.left,
- info.rcMonitor.bottom - info.rcMonitor.top,
+ HWND_TOPMOST,
+ info.rcMonitor.left - padding,
+ info.rcMonitor.top - padding,
+ (info.rcMonitor.right - info.rcMonitor.left) + padding * 2,
+ (info.rcMonitor.bottom - info.rcMonitor.top) + padding * 2,
SWP_NOOWNERZORDER | SWP_FRAMECHANGED
);
}
