dwarvesf / blurred

A macOS utility that helps reduce distraction by dimming your inactive noise
MIT License
895 stars 30 forks source link

Brief unblur when selecting program with multiple windows (single mode) #15

Open juriroemer opened 3 years ago

juriroemer commented 3 years ago

Describe the bug

When in single mode, refocusing a program with more than two instances open (through cmd+tab or by closing the currently in focus window), all windows of that program light up/unblur in addition to the currently focused window for a second and go back to only unblurring the focused window again (as it should be in single mode). This might be a MacOS thing, not sure if you can do anything about it.

Steps to reproduce

  1. set blurred to single mode
  2. open two or more windows of the same program (e.g. chrome or preview), in a way that you can see both of them at the same time
  3. focus a window of a different program
  4. refocus the program with two or more windows (cmd+tab, or close the program from step 3)

Expected behaviour

Only the currently in focus window should be unblurred, not all instances of the program.

Screencapture

The wikipedia window unblurrs, although it is not in focus.

https://user-images.githubusercontent.com/31971585/104389077-f0b83400-553a-11eb-8a97-0b58e1d915e4.mov

Environment

viettrungphan commented 3 years ago

Thanks for your reporting. There is a delay to receipt window focus change event hence the draw function delay follow it. Currently we don’t have any solution for it yet.