fix: mouse hover detection for hidden/windowless apps

This commit is contained in:
emptiestplace authored and lwouis committed 2026-01-15 00:08:35 +01:00
1 parent 9d0b947a48
commit 7c64864c2f
1 file changed
+1 -2
+1 -2
View File
@@ -307,8 +307,7 @@ class ScrollView: NSScrollView {
}
private func findTarget(_ location: NSPoint) -> ThumbnailView? {
for i in 0..<Windows.list.count {
let view = ThumbnailsView.recycledViews[i]
for case let view as ThumbnailView in documentView!.subviews {
let frame = view.frame
let expandedFrame = CGRect(x: frame.minX - (App.shared.userInterfaceLayoutDirection == .leftToRight ? 0 : 1), y: frame.minY, width: frame.width + 1, height: frame.height + 1)
if expandedFrame.contains(location) {