fix: client area inset calculation when maximized for framless windows (#25052)
* adopt per monitor scale factor * fix: client area inset calculation when maximized * address review feedback * pass correct glass insets to GetDwmFrameInsetsInPixels * remove unused code * Windows 8 and 10 use the same DWM frame calculation Co-authored-by: Cheng Zhao <zcbenz@gmail.com>
This commit is contained in:
parent
a09694ae85
commit
068b464e13
4 changed files with 74 additions and 6 deletions
|
@ -16,6 +16,7 @@ class WinFrameView : public FramelessView {
|
|||
~WinFrameView() override;
|
||||
|
||||
// views::NonClientFrameView:
|
||||
gfx::Rect GetBoundsForClientView() const override;
|
||||
gfx::Rect GetWindowBoundsForClientBounds(
|
||||
const gfx::Rect& client_bounds) const override;
|
||||
int NonClientHitTest(const gfx::Point& point) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue