It's almost a duplicate of #1050222, except for the fact that it happens when refocusing a window as well.
It's almost a duplicate of #1050222, except for the fact that it happens when refocusing a window as well.