File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -458,15 +458,6 @@ void NativeWindowAura::SetTransparent(bool transparent) {
458
458
459
459
// this is needed, or transparency will fail if it defined on startup
460
460
bool change_window_style = false ;
461
-
462
- if (!has_frame_) {
463
- const LONG lastStyle = GetWindowLong (hWnd, GWL_STYLE);
464
- const LONG style = WS_CAPTION;
465
- const LONG newStyle = transparent ? lastStyle | style : lastStyle & ~style;
466
- SetWindowLong (hWnd, GWL_STYLE, newStyle);
467
- change_window_style |= lastStyle != newStyle;
468
- }
469
-
470
461
const LONG lastExStyle = GetWindowLong (hWnd, GWL_EXSTYLE);
471
462
const LONG exStyle = WS_EX_COMPOSITED;
472
463
const LONG newExStyle = transparent ? lastExStyle | exStyle : lastExStyle & ~exStyle;
You can’t perform that action at this time.
0 commit comments