fix #1530
fixed the code that prioritize a video window when the user clicks on it
Merge pull request #174 from fcecagno/fix1530

fix #1530