bug 1044125 - Only capture screenshot and show overlay when edge gesture...

...s are in use or task manager is used. r=alive
If we don't need the screenshotIfInvisible please remove it from arguments