Fix lxde/lxde-qt#279

Check if we're on the correct desktop (or if we're showing all windows
from all desktops) before closing an application using middle click.