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

Hide Taskbar icon if overlay is pinned #199

Open
samfry13 opened this issue Aug 24, 2024 · 3 comments
Open

Hide Taskbar icon if overlay is pinned #199

samfry13 opened this issue Aug 24, 2024 · 3 comments

Comments

@samfry13
Copy link

samfry13 commented Aug 24, 2024

Is your feature request related to a problem? Please describe.
On Windows, the overlay window stays present on the taskbar even when the overlay is pinned (i.e. hidden) and the user is not in a call

Describe the solution you'd like
If the user has the overlay pinned, don't show a window on the taskbar

Describe alternatives you've considered
N/A

Additional context

Screenshot
image

Tauri has a setting for skipping the taskbar. This could potentially be set/unset when the user pins/unpins the overlay window respectively

@Hacksore
Copy link
Member

Yeah I'll think we can support this but as an opt-in. We'd want something like this for the config:

  • windowsHideFromTaskbarWhenPinned (for windows we can call set_skip_taskbar
  • macHideFromDockWhenPinned (for macOS we can call a custom impl to chage set_activation_policy to Accessory)
  • Linux (no idea 😂)

@ahkohd can we change the activation policy dynamically at runtime so that when pinning we make it hidden from the dock and unpinning it goes back to normal?

@samfry13
Copy link
Author

I believe set_skip_taskbar works for both windows and linux. It's just MacOS that isn't supported from that method.

@ahkohd
Copy link
Contributor

ahkohd commented Aug 26, 2024

Yeah I'll think we can support this but as an opt-in. We'd want something like this for the config:

* `windowsHideFromTaskbarWhenPinned` (for windows we can call [set_skip_taskbar](https://docs.rs/tauri/latest/tauri/window/struct.Window.html#method.set_skip_taskbar)

* `macHideFromDockWhenPinned` (for macOS we can call a custom impl to chage `set_activation_policy` to `Accessory`)

* Linux (no idea 😂)

@ahkohd can we change the activation policy dynamically at runtime so that when pinning we make it hidden from the dock and unpinning it goes back to normal?

The activation policy is called in the Tauri setup function, which is already running at runtime. This should make it possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants