Skip to content

Conversation

@PanMenel
Copy link

@PanMenel PanMenel commented Jan 7, 2026

This toggle allows users to disable the system title bar and window frame.
It is specifically designed to provide a clean, borderless experience,
which pairs perfectly with #2528 for multi-window setups.

Unlike hiding the Menu Bar, this affects the native OS window
(title bar, close/min/max buttons), allowing the emulator content
to fill the entire window area.

Comment on lines +2232 to +2245
#ifdef _WIN32
HWND hwnd = (HWND)winId();
LONG style = GetWindowLong(hwnd, GWL_STYLE);

if (style & WS_CAPTION) {
style &= ~(WS_CAPTION | WS_THICKFRAME);
} else {
style |= WS_CAPTION | WS_THICKFRAME;
}

SetWindowLong(hwnd, GWL_STYLE, style);
SetWindowPos(hwnd, nullptr, 0, 0, 0, 0,
SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED);
#endif

This comment was marked as off-topic.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You must have misinterpreted this commit. This one is for windows border, like with minimizing and closing options. You should refer to #2528 which uses code in line with what you are saying. Yeah, I know it is only windows (for now) but it does its job, I could improve it in the future, but there is no need for now. And Sorry for confusion :p

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just changed the title to more resemble what it really does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants