- /* (try to) ensure that resizing is possible.
- */
- get_window()->set_decorations (Gdk::DECOR_BORDER|Gdk::DECOR_RESIZEH);
+ /* (try to) ensure that resizing is possible and the window can be moved (and closed) */
+ get_window()->set_decorations (Gdk::DECOR_BORDER | Gdk::DECOR_RESIZEH | Gdk::DECOR_TITLE | Gdk::DECOR_MENU);
+
+ /* try to force a fixed aspect ratio so that we don't distort the font */
+ float aspect = default_size.width/(float)default_size.height;
+ Gdk::Geometry geom;
+
+ geom.min_aspect = aspect;
+ geom.max_aspect = aspect;
+ geom.min_width = -1; /* use requisition */
+ geom.min_height = -1; /* use requisition */
+
+ get_window()->set_geometry_hints (geom, Gdk::WindowHints (Gdk::HINT_ASPECT|Gdk::HINT_MIN_SIZE));