Skip to content

WS_EX_WINDOWEDGE not being removed when Decorations is false #1153

@eythaann

Description

@eythaann

Round border is added because of this style.

Image

Bug introduced on: #864

Currently for some reason only is removed for child windows when before was removed if not child, the correct approach was removed it if decorations are disabled, that is correct, but for ALL windows not only child windows.

I tried manually removing the style but apparently can't be removed after window creation.

let mut ex_style = WindowsApi::get_ex_styles(hwnd);
ex_style &= !WS_EX_ACCEPTFILES;
ex_style &= !WS_EX_APPWINDOW;
ex_style &= !WS_EX_WINDOWEDGE;
SetWindowLongPtrW(hwnd, GWL_EXSTYLE, ex_style.0 as isize);
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions