Improved Dlg window pos centering

Also tested on LMDE 64 bit with Cinnamon (Debian) and all dialogs seem to work fine.