Title: [250063] trunk/Source/WebKit
Revision
250063
Author
[email protected]
Date
2019-09-18 16:16:48 -0700 (Wed, 18 Sep 2019)

Log Message

Web Inspector: Can't drag undocked Inspector window by its title text
https://bugs.webkit.org/show_bug.cgi?id=190886
<rdar://problem/44574547>

Reviewed by Tim Horton.

* UIProcess/mac/WKInspectorWKWebView.mm:
(-[WKInspectorWKWebView _opaqueRectForWindowMoveWhenInTitlebar]):
Legendary.

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (250062 => 250063)


--- trunk/Source/WebKit/ChangeLog	2019-09-18 22:56:19 UTC (rev 250062)
+++ trunk/Source/WebKit/ChangeLog	2019-09-18 23:16:48 UTC (rev 250063)
@@ -1,3 +1,15 @@
+2019-09-18  Joseph Pecoraro  <[email protected]>
+
+        Web Inspector: Can't drag undocked Inspector window by its title text
+        https://bugs.webkit.org/show_bug.cgi?id=190886
+        <rdar://problem/44574547>
+
+        Reviewed by Tim Horton.
+
+        * UIProcess/mac/WKInspectorWKWebView.mm:
+        (-[WKInspectorWKWebView _opaqueRectForWindowMoveWhenInTitlebar]):
+        Legendary.
+
 2019-09-18  Chris Dumez  <[email protected]>
 
         BlobRegistry no longer needs SessionIDs

Modified: trunk/Source/WebKit/UIProcess/mac/WKInspectorWKWebView.mm (250062 => 250063)


--- trunk/Source/WebKit/UIProcess/mac/WKInspectorWKWebView.mm	2019-09-18 22:56:19 UTC (rev 250062)
+++ trunk/Source/WebKit/UIProcess/mac/WKInspectorWKWebView.mm	2019-09-18 23:16:48 UTC (rev 250063)
@@ -35,6 +35,13 @@
     WeakObjCPtr<id <WKInspectorWKWebViewDelegate>> _inspectorWKWebViewDelegate;
 }
 
+- (NSRect)_opaqueRectForWindowMoveWhenInTitlebar
+{
+    // This convinces AppKit to allow window moves when clicking anywhere in the titlebar (top 22pt)
+    // when this view's contents cover the entire window's contents, including the titlebar.
+    return NSZeroRect;
+}
+
 - (NSInteger)tag
 {
     return WKInspectorViewTag;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to