Add option to enable/disable WS_CLIPCHILDREN window style (#3212)
This commit is contained in:
parent
0cc19716f3
commit
10a785019c
5 changed files with 22 additions and 1 deletions
|
|
@ -1356,6 +1356,10 @@ unsafe fn init(
|
|||
// Will be changed later using `window.set_enabled_buttons` but we need to set a default here
|
||||
// so the diffing later can work.
|
||||
window_flags.set(WindowFlags::CLOSABLE, true);
|
||||
window_flags.set(
|
||||
WindowFlags::CLIP_CHILDREN,
|
||||
attributes.platform_specific.clip_children,
|
||||
);
|
||||
|
||||
let mut fallback_parent = || match attributes.platform_specific.owner {
|
||||
Some(parent) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue