Skip to content

armgit / cra

Public Imported from GitHub
0

The open-source Arc replacement for macOS. Spaces, pinned tabs, split view, Little Windows and Arc's shortcuts on Chromium, with your Arc sidebar imported in one go.

blank-window scenario fits GitHub's 1024×768 screen

Victor3d3ff804a0ef
diff --git a/Sources/Cra/App/AppDelegate.swift b/Sources/Cra/App/AppDelegate.swift
index 8b2a2f9..40e730f 100644
--- a/Sources/Cra/App/AppDelegate.swift
+++ b/Sources/Cra/App/AppDelegate.swift
@@ -992,7 +992,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate, NSMenuItemValidation {
point = [NSPoint(x: v.maxX, y: v.minY), NSPoint(x: v.minX, y: v.minY), NSPoint(x: v.maxX, y: v.maxY), NSPoint(x: v.minX, y: v.maxY)]
.first { !SpaceListView.isOverAppWindow($0) }
}
- guard let point else { CraLog.note("dragEnd: no point outside Cra's windows"); return }
+ guard let point else { CraLog.note("dragEnd: no point outside Cra's windows on screen \(NSStringFromRect(screen.visibleFrame))"); return }
CraLog.note("dragEnd: let go at \(NSStringFromPoint(point))")
main.testDragEnded(tab.id, at: point)
return
diff --git a/Tests/Scenarios/blank-window.scenario b/Tests/Scenarios/blank-window.scenario
index ec857b8..8e9db40 100644
--- a/Tests/Scenarios/blank-window.scenario
+++ b/Tests/Scenarios/blank-window.scenario
@@ -6,7 +6,7 @@
# page as it was, and closes the Blank Window. File ▸ Blank Window (⌃⌘N, #220) opens an empty one,
# and a relaunch brings it back.
budget rss=700 stalls50=10
-cra://debug?windowSize=1000x700
+cra://debug?windowSize=900x500
cra://open?url=${PAGE}?n=stays
expect-log loaded 127\.0\.0\.1 \(HTTP 200\)
cra://open?url=${PAGE}?n=torn