Make the window top level

The main window should be declared as a top level window, not a popup
window. Change the window type to top level.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>