fix bug: the min/max button disappear when maxmized on the second screen
make the main window and the setting dlg shown in the correct screen