Skip to content

Commit

Permalink
Fix the issue where the close button is not clickable when the mouse …
Browse files Browse the repository at this point in the history
…cursor is on the right corner of the close button when the window is maximized. (3)
  • Loading branch information
sdottaka committed Nov 2, 2024
1 parent 3b55186 commit 2d7e9b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/TitleBarHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ CRect CTitleBarHelper::GetButtonRect(int button) const
rcPart.top = GetTopMargin();
rcPart.bottom = m_size.cy;
rcPart.left = static_cast<int>(m_size.cx - (3 - button) * buttonWidth);
rcPart.right = static_cast<int>(rcPart.left + buttonWidth + 0.5);
rcPart.right = static_cast<int>(m_size.cx - (3 - button) * buttonWidth + buttonWidth + 0.5);
return rcPart;
}

Expand Down

0 comments on commit 2d7e9b5

Please sign in to comment.