Avoided some warnings when building for Gtk+ 3
Implemented most of the code required for using a dedicated window for the desktop