Fixed Dialogue positioning and focussing on Linux.

Fixes #220. Fixes #642. I suspect this could also sort out #62, but that needs to be verified by a KDE user.
Merge pull request #644 from johnhaddon/dialoguePositioning

Fixed Dialogue positioning and focussing on Linux.