Fix issues with tab swapping and change distribution#1831
Fix issues with tab swapping and change distribution#1831ianyh merged 18 commits intodevelopmentfrom
Conversation
This is a significant change, but a necessary one. In my refactoring I seem to have at some point dropped window close events in their entirety. Stateless layouts are unaffected because they don't rely on the events, but bsp (and by extension any stateful layout) was not getting them.
This avoids doing a ton of id cache regenerations for an app that potentially has many windows.
|
Tab swapping stopped working after I upgraded from macOS 26.1 to macOS 26.2. 😓 |
|
@ianyh is there anything I could do to help you solve this issue? |
|
It's annoying because correctly swapping the tabs requires dropping events, but stateful layouts need all of them to stay consistent, so it has been a source of bsp bugs. So it's less about finding a solution, and more about finding time to implement it. |
|
I see, unfortunately I have zero knowledge of Swift to help you out with it. |
|
Okay, let's give this a go. 😅 |
This fixes a variety of issues around state management. For one thing, window closes got lost at some point, and were not being delivered to stateful layouts (including custom ones). There was an additional issue around native tab swapping and what that actually means for layout state.
This closes many (but not all) issues with bsp.
Fixes #1614