Paste to correct window if tray menu opened with right click
Update paste and focus window more carefully