It seems there bugged linux window managers. When electron window attaches first time linux WM decides to give focus to it, even though overlay didn't request for it.