-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
Support disabling window decorations in X11 and Win32 #196
base: develop
Are you sure you want to change the base?
Conversation
What is the usecase or this? |
So the window type does not change after it is created right? |
Another reason to have it as a new class is that these kinds of windows cannot use parentId (for embed). |
It does not have any need to change after creating.
Judgind by the documentation, I think it should definitely have it. |
Hmm, I believe there exists an anomaly in Windows code. https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowlongptra
|
4fa52aa
to
bd702d4
Compare
30e2d32
to
7599a6e
Compare
59cc6ed
to
470c5b7
Compare
8507aec
to
7cd4819
Compare
Hi, this adds ability to hide the window captions.
It's a starting point to implement such things as popup menu widgets.
On X11, it's using some Motif properties, which seems the widespread method from various toolkits.
On Windows, it's the style
WS_CAPTION
, needing some particular care to set it on/off.It needs to recalculate the adjusted window size after setting the hint. I will preserve the former position of the window.
A detail: the window's drawable area has an offset between caption on/off on Windows, because the title bar's top-left is considered the rectangle's origin, unlike in X11.
Other: on Windows it still has the resize border, unless setting
isResizable
to false.macOS to be implemented..