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 @@ -448,15 +448,6 @@ void NativeWindowAura::SetTransparent(bool transparent) {
448
448
449
449
// this is needed, or transparency will fail if it defined on startup
450
450
bool change_window_style = false ;
451
-
452
- if (!has_frame_) {
453
- const LONG lastStyle = GetWindowLong (hWnd, GWL_STYLE);
454
- const LONG style = WS_CAPTION;
455
- const LONG newStyle = transparent ? lastStyle | style : lastStyle & ~style;
456
- SetWindowLong (hWnd, GWL_STYLE, newStyle);
457
- change_window_style |= lastStyle != newStyle;
458
- }
459
-
460
451
const LONG lastExStyle = GetWindowLong (hWnd, GWL_EXSTYLE);
461
452
const LONG exStyle = WS_EX_COMPOSITED;
462
453
const LONG newExStyle = transparent ? lastExStyle | exStyle : lastExStyle & ~exStyle;
You can’t perform that action at this time.
0 commit comments