From 3163366a106120337455dc1ee17466403757dc20 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Fri, 16 Sep 2022 09:54:48 +0200 Subject: [PATCH] Inline empty `NSTrackingArea` rect --- crates/gpui/src/platform/mac/window.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/gpui/src/platform/mac/window.rs b/crates/gpui/src/platform/mac/window.rs index 8a140a2361..defaa612f4 100644 --- a/crates/gpui/src/platform/mac/window.rs +++ b/crates/gpui/src/platform/mac/window.rs @@ -459,10 +459,9 @@ impl Window { } let tracking_area: id = msg_send![class!(NSTrackingArea), alloc]; - let rect = NSRect::new(NSPoint::new(0., 0.), NSSize::new(0., 0.)); let _: () = msg_send![ tracking_area, - initWithRect: rect + initWithRect: NSRect::new(NSPoint::new(0., 0.), NSSize::new(0., 0.)) options: NSTrackingMouseMoved | NSTrackingActiveAlways | NSTrackingInVisibleRect owner: native_view userInfo: nil