AlexPerathoner/SlimHUD

Bars not always appearing

AlexPerathoner opened this issue · 1 comments

Before opening the issue, have you...?

  • Searched for existing issues
  • Updated SlimHUD to the latest version (if applicable)

Describe the bug

I suspect that SlimHUD, due to having an .accessory activationPolicy, or for being a mainly background app (perhaps it's a system limitation for any app), doesn't get the key press events as soon as they happen, but a bit later. Sometimes even multiple seconds after they happened.

This means that if "Continuous check" isn't checked, the bars could appear with quite a lot of delay.

Steps to reproduce

  1. Deactivate "continuous check"
  2. Use some other apps for some time
  3. Press volume buttons

Expected behavior

Hud should appear (and be updated, if already visible) as soon as the button is pressed

Anything else?

  • Check if it's a system limitation
  • If so, use only continuous check
  • remove KeyPressObserver, unnecessary

Environment Information (please complete the following information)

- macOS version: 12.0
- Mac model: MBP 13 2018
- Monitor(s): Dell 27"
- Apple Silicon/M1 (yes or no): no

Update: not a system limitation, just wrong capture of media keys. Using MediaKeyTab fixes that