This problem had been bothering me for a few years. I searched the entire forum and found a lot of answers, but none of them were practical, I found a solution last year accidentally
please rename the title of your app window as this format:
L:A_N:title_ID:xxxxxxx:N
I hope it works in your case