nefares / Background-Muter

Background Muter - Automatically Mute Background Applications
GNU General Public License v3.0
83 stars 8 forks source link

Multi-window processes incorrectly handling muting when MuteCondition is set to Minimized #20

Open nefares opened 1 year ago

nefares commented 1 year ago

Since only the Main Window handle is checked for the Iconic property, it causes all windows to remain muted/unmuted until the main window is minimized/unminimized.

A fix will probably include checking for the Window handle instead of the process, and muting only the process related to that window handle.

lamrongol commented 1 year ago

I tried to fix this bug but failed. My attempt is: https://github.com/lamrongol/Background-Muter/commit/c60dcab2ef1c234ab487a35e3ebb3ee4c283d9b8

I hope this clues you.