Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: force pointer cursor on entire notification panel

Louis Beaumontbc05e3b75198
diff --git a/apps/screenpipe-app-tauri/src-tauri/swift/notification_panel.swift b/apps/screenpipe-app-tauri/src-tauri/swift/notification_panel.swift
index 59acbeca8..266406155 100644
--- a/apps/screenpipe-app-tauri/src-tauri/swift/notification_panel.swift
+++ b/apps/screenpipe-app-tauri/src-tauri/swift/notification_panel.swift
@@ -465,8 +465,16 @@ struct VisualEffectView: NSViewRepresentable {
private class HoverTrackingView: NSView {
weak var controller: NotificationPanelController?
+ // Force pointer (hand) cursor over the entire notification panel.
+ // This overrides SwiftUI Text's default I-beam cursor.
+ override func resetCursorRects() {
+ discardCursorRects()
+ addCursorRect(bounds, cursor: .pointingHand)
+ }
+
override func updateTrackingAreas() {
super.updateTrackingAreas()
+ window?.invalidateCursorRects(for: self)
for ta in trackingAreas { removeTrackingArea(ta) }
let ta = NSTrackingArea(
rect: bounds,