Skip to content

Commit 493e7e9

Browse files
committed
[Transparency] regression nwjs#1021 fix
1 parent a94e770 commit 493e7e9

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
@@ -448,15 +448,6 @@ void NativeWindowAura::SetTransparent(bool transparent) {
448448

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

0 commit comments

Comments
 (0)