Properly save/restore main window configuration when it maximized
Fixed #194: Scan Popup window doesn't get the keyboard focus on Linux.

Tested and verified on recent Unity, Gnome, KDE, LXDE systems.
Fixed #197: Sometimes the Scan Popup shows previous translation (Linux).