Repository navigation
Commit bb751db
committed
fix: rebase cursor samples on capture bounds, use window bounds for picked windows
Implement updateCaptureBounds on MacNativeCursorRecordingSession (optional
on CursorRecordingSession). Samples recorded before the helper reports its
bounds are rebased onto them, and later samples use the new bounds.
For a one-window capture filter on macOS 15.2+, take the capture frame from
kCGWindowBounds by window id instead of filter.contentRect, which sits below
the window's on-screen origin for a window chosen in Apple's picker.1 parent f0d8c29 commit bb751db
3 files changed
Lines changed: 49 additions & 16 deletions
File tree
- electron
- native-bridge/cursor/recording
- native/screencapturekit/Sources/OpenScreenScreenCaptureKitHelper
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
| 238 | + | |
237 | 239 | | |
238 | 240 | | |
239 | 241 | | |
| |||
242 | 244 | | |
243 | 245 | | |
244 | 246 | | |
| 247 | + | |
| 248 | + | |
245 | 249 | | |
246 | 250 | | |
247 | 251 | | |
| |||
330 | 334 | | |
331 | 335 | | |
332 | 336 | | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
333 | 351 | | |
334 | 352 | | |
335 | 353 | | |
| |||
408 | 426 | | |
409 | 427 | | |
410 | 428 | | |
411 | | - | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
412 | 433 | | |
413 | 434 | | |
414 | 435 | | |
| |||
442 | 463 | | |
443 | 464 | | |
444 | 465 | | |
| 466 | + | |
445 | 467 | | |
446 | 468 | | |
447 | 469 | | |
| 470 | + | |
448 | 471 | | |
449 | 472 | | |
450 | 473 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| 7 | + | |
6 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | | - | |
124 | | - | |
| 122 | + | |
125 | 123 | | |
126 | 124 | | |
127 | 125 | | |
| |||
1151 | 1149 | | |
1152 | 1150 | | |
1153 | 1151 | | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
1157 | | - | |
1158 | | - | |
1159 | | - | |
1160 | | - | |
1161 | | - | |
1162 | | - | |
1163 | | - | |
| 1152 | + | |
| 1153 | + | |
1164 | 1154 | | |
1165 | | - | |
1166 | | - | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
1167 | 1160 | | |
| 1161 | + | |
1168 | 1162 | | |
1169 | 1163 | | |
1170 | 1164 | | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
1171 | 1179 | | |
1172 | 1180 | | |
1173 | 1181 | | |
| |||
0 commit comments