Skip to content

Commit 56151df

Browse files
committed
Fix mouse events in hidden chat window
1 parent a875b92 commit 56151df

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Core/Sources/SuggestionWidget/SuggestionWidgetController.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,12 @@ class ChatWindow: NSWindow {
302302
alphaValue = isPanelDisplayed && !isWindowHidden ? 1 : 0
303303
}
304304
}
305+
306+
override var alphaValue: CGFloat {
307+
didSet {
308+
ignoresMouseEvents = alphaValue <= 0
309+
}
310+
}
305311

306312
override func miniaturize(_: Any?) {
307313
minimizeWindow()

0 commit comments

Comments
 (0)