Add option to enable/disable WS_CLIPCHILDREN window style (#3212)

This commit is contained in:
Amr Bashir 2024-01-22 19:55:37 +02:00 committed by GitHub
parent 0cc19716f3
commit 10a785019c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 22 additions and 1 deletions

View file

@ -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) => {