-
-
Notifications
You must be signed in to change notification settings - Fork 683
Window border toggle #2535
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
base: master
Are you sure you want to change the base?
Window border toggle #2535
Conversation
…look on par, + deletion of unused include. I think that is last thing that was missing from that fork and probably last revision.
| #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.
This comment was marked as off-topic.
Sorry, something went wrong.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
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.