Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix macOS resize bug #2618

Merged
merged 1 commit into from Jul 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/SFML/Window/OSX/SFWindowController.mm
Expand Up @@ -483,6 +483,11 @@ -(void)resizeTo:(unsigned int)width by:(unsigned int)height
if (m_requester != 0)
m_requester->windowResized(width, height - static_cast<unsigned int>([self titlebarHeight]));
}
else if (width != [self size].width || height != [self size].height + static_cast<CGFloat>([self titlebarHeight]))
{
if (m_requester != 0)
m_requester->windowResized(width, height - static_cast<unsigned int>([self titlebarHeight]));
}

NSRect frame = NSMakeRect([m_window frame].origin.x,
[m_window frame].origin.y,
Expand Down