Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] Can Tauri be visible in all workspaces of macOS? #6589

Closed
ninetyeights opened this issue Mar 30, 2023 · 9 comments
Closed

[feat] Can Tauri be visible in all workspaces of macOS? #6589

ninetyeights opened this issue Mar 30, 2023 · 9 comments
Labels
status: backlog Issue is ready and we can work on it type: feature request

Comments

@ninetyeights
Copy link

Describe the problem

CleanShot 2023-03-29 at 21 39 37

I've searched for a lot of ways to implement a window that shows in all workspaces when switching workspaces in macOS, similar to the settings in Electron, as in the screenshot below, but I haven't found a way to do it, and I wonder if there's another way to do it?
CleanShot 2023-03-29 at 21 28 22

Describe the solution you'd like

Is it possible to add this setting, or is there another solution?

Alternatives considered

No response

Additional context

No response

@ninetyeights ninetyeights changed the title [feat] Can Tauri be displayed in all workspaces of macOS? [feat] Can Tauri be visible in all workspaces of macOS? Mar 30, 2023
@FabianLars
Copy link
Member

This was added to Tao in January: tauri-apps/tao#666. Since this was released in tao 0.15.9/0.16.0 (tauri 1.x is locked to 0.16) this could be added in a potential 1.4 release :)

If you need it now you'd have to replicate the PR in Rust in your own code.

@FabianLars FabianLars added the status: backlog Issue is ready and we can work on it label Mar 30, 2023
@slimsag
Copy link

slimsag commented May 18, 2023

We're soon to use Tauri in production at Sourcegraph; and would love this feature. I know +1 comments aren't useful, but figured I'd mention it just in case

@kris-ava
Copy link

kris-ava commented Jul 6, 2023

This seems to have been in tao since a few versions, but the API never got propagated all the way to Tauri. Is there any update on this?

krzykro2 pushed a commit to krzykro2/tauri that referenced this issue Jul 17, 2023
krzykro2 added a commit to krzykro2/tauri that referenced this issue Jul 17, 2023
krzykro2 added a commit to krzykro2/tauri that referenced this issue Jul 24, 2023
@nadenf
Copy link

nadenf commented Jul 26, 2023

@wusyong @krzykro2 .. I just tried this out and it doesn't appear to work.

I have uploaded a minimal test case here.

The registered hot key toggles the window on one Mac space. But not on any other.

@T31K
Copy link

T31K commented Oct 6, 2023

Any update on this?

edit: seems like it was added to tauri 2.0.0. any way to use it on older versions?

@ninetyeights
Copy link
Author

ninetyeights commented Oct 6, 2023

Any update on this?

edit: seems like it was added to tauri 2.0.0. any way to use it on older versions?

Yes, I implemented it using Cocoa’s native functions. Here I have uploaded a test case for your reference.
https://gist.github.com/ninetyeights/ddfbe532f5485b761dc5db122e26cfa9

@T31K
Copy link

T31K commented Oct 6, 2023

lovely mate, cheers!
tested and working 👍🏻
@ninetyeights

@Yiork
Copy link

Yiork commented Feb 4, 2024

it works perfectly , thanks you @ninetyeights

@TamasBarta
Copy link

Please reopen this. 2.0 is alpha software. This issue is not fixed, because it is not scheduled to be released in a stable version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: backlog Issue is ready and we can work on it type: feature request
Projects
None yet
Development

No branches or pull requests

8 participants