Skip to content

Commit 0bb5dab

Browse files
committed
omits setMouseDownCanMoveWindow call for OffScreenView
1 parent 7624958 commit 0bb5dab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

atom/browser/native_window_mac.mm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,9 @@ static bool FromV8(v8::Isolate* isolate, v8::Handle<v8::Value> val,
11281128
NSInteger webViewWidth = NSWidth([webView bounds]);
11291129
NSInteger webViewHeight = NSHeight([webView bounds]);
11301130

1131-
[webView setMouseDownCanMoveWindow:YES];
1131+
if ([webView respondsToSelector:@selector(setMouseDownCanMoveWindow:)]) {
1132+
[webView setMouseDownCanMoveWindow:YES];
1133+
}
11321134

11331135
// Remove all ControlRegionViews that are added last time.
11341136
// Note that [webView subviews] returns the view's mutable internal array and

0 commit comments

Comments
 (0)