Skip to content

Commit 076b90b

Browse files
committed
Make iphonesimulator floating by default
#1547
1 parent b67ebe6 commit 076b90b

File tree

2 files changed

+113
-0
lines changed

2 files changed

+113
-0
lines changed

Sources/AppBundle/util/AxUiElementMockEx.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ extension AxUiElementMock {
66
func isDialogHeuristic(appBundleId id: String?) -> Bool {
77
// Note: a lot of windows don't have title on startup. So please don't rely on the title
88

9+
if id == "com.apple.iphonesimulator" {
10+
return true
11+
}
12+
913
lazy var isQutebrowser = id == "org.qutebrowser.qutebrowser"
1014

1115
// Don't tile:

axDumps/iphonesimulator.json5

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
{
2+
"AXActivationPoint" : "<AXValue 0x6000001ed020> {value = x:1809.000000 y:1131.000000 type = kAXValueCGPointType}",
3+
"AXCancelButton" : null,
4+
"AXCloseButton" : {
5+
"AXEnabled" : 1,
6+
"AXParent" : "AXUIElement(AxWindowId=9515, title=\"iPhone 15 Pro – iOS 17.4\", role=\"AXWindow\", subrole=\"AXStandardWindow\")",
7+
"AXRole" : "AXButton",
8+
"AXSubrole" : "AXCloseButton",
9+
"AXTitle" : null,
10+
"AXTopLevelUIElement" : "AXUIElement(AxWindowId=9515, title=\"iPhone 15 Pro – iOS 17.4\", role=\"AXWindow\", subrole=\"AXStandardWindow\")",
11+
"AXWindow" : "AXUIElement(AxWindowId=9515, title=\"iPhone 15 Pro – iOS 17.4\", role=\"AXWindow\", subrole=\"AXStandardWindow\")",
12+
"Aero.AxIgnored" : "AXFrame, AXSize, AXFocused, AXHelp, AXPosition, AXRoleDescription, AXEdited"
13+
},
14+
"AXDefaultButton" : null,
15+
"AXDocument" : null,
16+
"AXFocused" : 0,
17+
"AXFrame" : "<AXValue 0x600001be1e80> {value = x:1799.000000 y:1117.000000 w:447.000000 h:950.000000 type = kAXValueCGRectType}",
18+
"AXFullScreen" : 0,
19+
"AXFullScreenButton" : {
20+
"AXEnabled" : 1,
21+
"AXParent" : "AXUIElement(AxWindowId=9515, title=\"iPhone 15 Pro – iOS 17.4\", role=\"AXWindow\", subrole=\"AXStandardWindow\")",
22+
"AXRole" : "AXButton",
23+
"AXSubrole" : "AXFullScreenButton",
24+
"AXTitle" : null,
25+
"AXTopLevelUIElement" : "AXUIElement(AxWindowId=9515, title=\"iPhone 15 Pro – iOS 17.4\", role=\"AXWindow\", subrole=\"AXStandardWindow\")",
26+
"AXWindow" : "AXUIElement(AxWindowId=9515, title=\"iPhone 15 Pro – iOS 17.4\", role=\"AXWindow\", subrole=\"AXStandardWindow\")",
27+
"Aero.AxIgnored" : "AXFrame, AXSize, AXFocused, AXChildren, AXHelp, AXPosition, AXRoleDescription"
28+
},
29+
"AXGrowArea" : null,
30+
"AXMain" : 1,
31+
"AXMinimizeButton" : {
32+
"AXEnabled" : 1,
33+
"AXParent" : "AXUIElement(AxWindowId=9515, title=\"iPhone 15 Pro – iOS 17.4\", role=\"AXWindow\", subrole=\"AXStandardWindow\")",
34+
"AXRole" : "AXButton",
35+
"AXSubrole" : "AXMinimizeButton",
36+
"AXTitle" : null,
37+
"AXTopLevelUIElement" : "AXUIElement(AxWindowId=9515, title=\"iPhone 15 Pro – iOS 17.4\", role=\"AXWindow\", subrole=\"AXStandardWindow\")",
38+
"AXWindow" : "AXUIElement(AxWindowId=9515, title=\"iPhone 15 Pro – iOS 17.4\", role=\"AXWindow\", subrole=\"AXStandardWindow\")",
39+
"Aero.AxIgnored" : "AXFrame, AXSize, AXFocused, AXHelp, AXPosition, AXRoleDescription"
40+
},
41+
"AXMinimized" : 0,
42+
"AXModal" : 0,
43+
"AXParent" : "<AXUIElement Application 0x600000186e50> {pid=78264}",
44+
"AXPosition" : "<AXValue 0x600000185e60> {value = x:1799.000000 y:1117.000000 type = kAXValueCGPointType}",
45+
"AXProxy" : null,
46+
"AXRole" : "AXWindow",
47+
"AXSections" : [
48+
"{\n SectionDescription = Toolbar;\n SectionObject = \"<AXUIElement 0x6000001ee760> {pid=78264}\";\n SectionUniqueID = AXToolbar;\n}",
49+
"{\n SectionDescription = Content;\n SectionObject = \"<AXUIElement 0x6000001eda40> {pid=78264}\";\n SectionUniqueID = AXContent;\n}"
50+
],
51+
"AXSize" : "<AXValue 0x6000001ef810> {value = w:447.000000 h:950.000000 type = kAXValueCGSizeType}",
52+
"AXSubrole" : "AXStandardWindow",
53+
"AXTitle" : "iPhone 15 Pro – iOS 17.4",
54+
"AXTitleUIElement" : "AXUIElement(AxWindowId=9515, title=nil, role=\"AXStaticText\", subrole=nil)",
55+
"AXToolbarButton" : null,
56+
"AXZoomButton" : {
57+
"AXEnabled" : 1,
58+
"AXParent" : "AXUIElement(AxWindowId=9515, title=\"iPhone 15 Pro – iOS 17.4\", role=\"AXWindow\", subrole=\"AXStandardWindow\")",
59+
"AXRole" : "AXButton",
60+
"AXSubrole" : "AXFullScreenButton",
61+
"AXTitle" : null,
62+
"AXTopLevelUIElement" : "AXUIElement(AxWindowId=9515, title=\"iPhone 15 Pro – iOS 17.4\", role=\"AXWindow\", subrole=\"AXStandardWindow\")",
63+
"AXWindow" : "AXUIElement(AxWindowId=9515, title=\"iPhone 15 Pro – iOS 17.4\", role=\"AXWindow\", subrole=\"AXStandardWindow\")",
64+
"Aero.AxIgnored" : "AXFrame, AXSize, AXFocused, AXChildren, AXHelp, AXPosition, AXRoleDescription"
65+
},
66+
"Aero.AXApp" : {
67+
"AXExtrasMenuBar" : null,
68+
"AXFocusedUIElement" : {
69+
"AXEnabled" : 1,
70+
"AXParent" : "AXUIElement(AxWindowId=9515, title=\"iPhone 15 Pro – iOS 17.4\", role=\"AXWindow\", subrole=\"AXStandardWindow\")",
71+
"AXRole" : "AXButton",
72+
"AXTitle" : "Action",
73+
"AXTopLevelUIElement" : "AXUIElement(AxWindowId=9515, title=\"iPhone 15 Pro – iOS 17.4\", role=\"AXWindow\", subrole=\"AXStandardWindow\")",
74+
"AXWindow" : "AXUIElement(AxWindowId=9515, title=\"iPhone 15 Pro – iOS 17.4\", role=\"AXWindow\", subrole=\"AXStandardWindow\")",
75+
"Aero.AxIgnored" : "AXFrame, AXSize, AXFocused, AXHelp, AXPosition, AXRoleDescription"
76+
},
77+
"AXFocusedWindow" : "AXUIElement(AxWindowId=9515, title=\"iPhone 15 Pro – iOS 17.4\", role=\"AXWindow\", subrole=\"AXStandardWindow\")",
78+
"AXFrame" : null,
79+
"AXFrontmost" : 1,
80+
"AXFunctionRowTopLevelElements" : [
81+
82+
],
83+
"AXMainWindow" : "AXUIElement(AxWindowId=9515, title=\"iPhone 15 Pro – iOS 17.4\", role=\"AXWindow\", subrole=\"AXStandardWindow\")",
84+
"AXMenuBar" : "<AXUIElement 0x600000184ab0> {pid=78264}",
85+
"AXPosition" : null,
86+
"AXRole" : "AXApplication",
87+
"AXSize" : null,
88+
"AXTitle" : "Simulator",
89+
"AXWindows" : [
90+
"AXUIElement(AxWindowId=9515, title=\"iPhone 15 Pro – iOS 17.4\", role=\"AXWindow\", subrole=\"AXStandardWindow\")"
91+
],
92+
"Aero.AxIgnored" : "AXChildren, AXChildrenInNavigationOrder, AXEnhancedUserInterface, AXPreferredLanguage, AXRoleDescription, AXHidden"
93+
},
94+
"Aero.App.appBundleId" : "com.apple.iphonesimulator",
95+
"Aero.App.nsApp.activationPolicy" : "regular",
96+
"Aero.App.nsApp.execPath" : "file:///Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator",
97+
"Aero.App.version" : "1042.1",
98+
"Aero.App.versionShort" : "16.0",
99+
"Aero.AxIgnored" : "AXChildrenInNavigationOrder, AXChildren, AXRoleDescription",
100+
"Aero.AxUiElementWindowType" : "dialog",
101+
"Aero.AxUiElementWindowType_isDialogHeuristic" : true,
102+
"Aero.axWindowId" : 9515,
103+
"Aero.macOS.version" : "Version 15.5 (Build 24F74)",
104+
"Aero.on-window-detected" : [
105+
106+
],
107+
"Aero.treeNodeParent" : "Optional(AppBundle.TilingContainer)",
108+
"Aero.workspace" : "X"
109+
}

0 commit comments

Comments
 (0)