Skip to content

Commit d97d245

Browse files
committed
[Transparency] regression nwjs#1021 fix
1 parent ca98da6 commit d97d245

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/browser/native_window_aura.cc

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -458,15 +458,6 @@ void NativeWindowAura::SetTransparent(bool transparent) {
458458

459459
// this is needed, or transparency will fail if it defined on startup
460460
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-
470461
const LONG lastExStyle = GetWindowLong(hWnd, GWL_EXSTYLE);
471462
const LONG exStyle = WS_EX_COMPOSITED;
472463
const LONG newExStyle = transparent ? lastExStyle | exStyle : lastExStyle & ~exStyle;

0 commit comments

Comments
 (0)