feat(macos): add tabbing_identifier option, closes #2804, #3912#5399
feat(macos): add tabbing_identifier option, closes #2804, #3912#5399lucasfernog merged 7 commits intotauri-apps:devfrom
tabbing_identifier option, closes #2804, #3912#5399Conversation
|
Is it just the Windows/Linux user in me or is this something that should be off by default (or always)? |
|
I'd love it to be off by default but that's not default behaviour on macOS… Edit: for reference, default behaviour on macOS (ie, when this is on) is to follow the preference set by the user. |
|
Just a thought – if it's off by default that will technically be a breaking change, so even if we do want that, maybe best to add it as-is for v1.2 and then change the default in v2.0? |
lucasfernog
left a comment
There was a problem hiding this comment.
Nice addition, thanks! This also closes #2804
|
electron actually uses tabbingIdentifier and disables tabbing if the window is transparent or if it doesn't have decorations. if (tabbingIdentifier.empty() || transparent() || !has_frame()) {
[window_ setTabbingMode:NSWindowTabbingModeDisallowed];
} else {
[window_ setTabbingIdentifier:base::SysUTF8ToNSString(tabbingIdentifier)];
} |
automatic_tabbing option, closes #3912automatic_tabbing option, closes #2804, #3912
Ah, I was sure there was another issue, but I failed to find it, thanks.
I did try that it it didn't seem to have any effect, but I might have done something wrong. Might be worth playing with it again.
That seems sensible. Though I must say I'm quite drawn to the idea of disabling it by default, and providing an option to enable. What do you think? |
|
I can also play with the tabbingIdentifier later - I expect it to define groups of windows that can be tabbed together. I like the idea of disabling it by default, and it's what electron does. |
|
I've opened a PR to add tabbing identifier support on tao. I couldn't understand how it works when changing the identifier at runtime, but the builder |
automatic_tabbing option, closes #2804, #3912tabbing_identifier option, closes #2804, #3912
|
Edit: Apologies, now I look properly, I see that's effectively what you've done. |
|
Looks good! Thanks @lucasfernog. |
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
Checklist
fix: remove a typo, closes #___, #___)Other information
Closes #2804, closes #3912
Uses the new APIs introduced in Tao in tauri-apps/tao#586 and tauri-apps/tao#592.