Commit e94a5d6
committed
Add native tray_set_windows_move_to_active_space() for reliable Spaces support
The JNA-based setMoveToActiveSpace() via Native.getComponentID() was
not reliably reaching the NSWindow. Add a native Swift function that
directly iterates NSApp.windows and inserts .moveToActiveSpace into
each window's collectionBehavior. Called from TrayApp before toFront().
Also separate runCatching blocks so a failure in Spaces configuration
does not prevent toFront()/requestFocus() from running.1 parent eb33e26 commit e94a5d6
3 files changed
Lines changed: 20 additions & 3 deletions
File tree
- maclib
- src/commonMain/kotlin/com/kdroid/composetray
- lib/mac
- tray/api
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
415 | 427 | | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| 352 | + | |
| 353 | + | |
352 | 354 | | |
353 | 355 | | |
354 | 356 | | |
| |||
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
620 | 621 | | |
621 | 622 | | |
622 | 623 | | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
623 | 629 | | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | 630 | | |
628 | 631 | | |
629 | 632 | | |
| |||
0 commit comments