Skip to content

Commit

Permalink
[win] fix bug 69675
Browse files Browse the repository at this point in the history
  • Loading branch information
SimplestStudio committed Aug 19, 2024
1 parent 8694fe5 commit fac8433
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions win-linux/src/windows/platform_win/cwindowplatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ CWindowPlatform::CWindowPlatform(const QRect &rect) :
m_dpi = GetLogicalDpi(this);
GetFrameMetricsForDpi(m_frame, m_dpi, m_isMaximized);
SetWindowPos(m_hWnd, 0, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_FRAMECHANGED);
connect(this->window()->windowHandle(), &QWindow::screenChanged, this, [=]() {
SetWindowPos(m_hWnd, 0, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_FRAMECHANGED);
});
}

CWindowPlatform::~CWindowPlatform()
Expand Down

0 comments on commit fac8433

Please sign in to comment.