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

The client triggers some system hooks when hidden #1621

Open
1 of 2 tasks
Mayonnaise-Slap opened this issue Jan 29, 2025 · 0 comments
Open
1 of 2 tasks

The client triggers some system hooks when hidden #1621

Mayonnaise-Slap opened this issue Jan 29, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Mayonnaise-Slap
Copy link

Search first

  • I searched and no similar issues were found

Platform/OS

macOS

OS version

Sequoia 15.2

Hiddify Version

2.7 dev

What Happened?

I am using a tiling window manager "aerospace" on macOS and found a bug when using it with this vpn client. The aerospace app, as described here relies on OS hooks to keep track of windows. When I minimize hiddify app client the twm started lagging a lot, but it did not impact any other app. The problem is that the twm is run on a refreshSession idempotent loop and when i minimize hiddify, it activated a tonn of such hooks. It does not affect the overall system performanse, but it does affect some users who rely on macOS accessability api.

Minimal Reproducible Example (MRE)

  1. install aerospace with default config
  2. open hiddify client and minimize it (cmd+m)
  3. try dragging windows to see how twm is not snappy
  4. check how long switching spaces takes

Expected Behavior

I am not familiar with macOS app development and could not track what hook is triggered so often in that scenario, but in probably should not be. I have had other vpm clients on this machine and did not have such issues. I also never encountered such problems with minimizing other apps

Additional Context

If the app is not minimized, this does not happen and the twm does not slow down
I have tested it on a MBP 14" m1 pro 16gb

Application Config Options

No response

Relevant log output

No response

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)
@Mayonnaise-Slap Mayonnaise-Slap added the bug Something isn't working label Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant