@@ -279,7 +279,9 @@ extension SuggestionWidgetController {
279279 kAXResizedNotification,
280280 kAXMainWindowChangedNotification,
281281 kAXFocusedWindowChangedNotification,
282- kAXFocusedUIElementChangedNotification
282+ kAXFocusedUIElementChangedNotification,
283+ kAXWindowMovedNotification,
284+ kAXWindowResizedNotification
283285 )
284286 for await notification in notifications {
285287 guard let self else { return }
@@ -322,7 +324,8 @@ extension SuggestionWidgetController {
322324 )
323325 let scroll = AXNotificationStream (
324326 app: app,
325- element: scrollBar, notificationNames: kAXValueChangedNotification
327+ element: scrollBar,
328+ notificationNames: kAXValueChangedNotification
326329 )
327330
328331 if #available( macOS 13 . 0 , * ) {
@@ -332,8 +335,6 @@ extension SuggestionWidgetController {
332335 ) {
333336 guard let self else { return }
334337 try Task . checkCancellation ( )
335- let mode = UserDefaults . shared. value ( for: \. suggestionWidgetPositionMode)
336- if mode != . alignToTextCursor { break }
337338 self . updateWindowLocation ( animated: false )
338339 }
339340 } else {
@@ -439,7 +440,7 @@ extension SuggestionWidgetController {
439440 } else {
440441 suggestionPanelViewModel. content = nil
441442 }
442-
443+
443444 if let chat = chatForFiles [ fileURL] {
444445 suggestionPanelViewModel. chat = chat
445446 } else {
0 commit comments