Skip to content

Commit 2dc09e1

Browse files
committed
Fix -webkit-app-region: drag don't work any more once it maximized. Part of nwjs#1168.
This feature is broken by commit da2b25c. TEST=1. Run the nw-sample-apps\frameless-window; 2. Show the titlebar by cliking "Top Titlebar" 3. Double click the maximize the windows. 4. Double click the tilte bar should be able to unmaximize the window.
1 parent ef718e4 commit 2dc09e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/browser/native_window_win.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,11 +668,11 @@ void NativeWindowWin::OnViewWasResized() {
668668
1);
669669

670670
SkRegion* rgn = new SkRegion;
671-
if (!window_->IsFullscreen() && !window_->IsMaximized()) {
671+
if (!window_->IsFullscreen()) {
672672
if (draggable_region())
673673
rgn->op(*draggable_region(), SkRegion::kUnion_Op);
674674

675-
if (!has_frame() && CanResize()) {
675+
if (!has_frame() && CanResize() && !window_->IsMaximized()) {
676676
rgn->op(0, 0, width, kResizeInsideBoundsSize, SkRegion::kUnion_Op);
677677
rgn->op(0, 0, kResizeInsideBoundsSize, height, SkRegion::kUnion_Op);
678678
rgn->op(width - kResizeInsideBoundsSize, 0, width, height,

0 commit comments

Comments
 (0)