On 05-10-2007, at 05:54:36 Ofer Oshri wrote: > realizing the gdk::window solved the core dump but the window_manager still > ignored the requested decoration. Attached complete example, and resulting screenshoot. > is there a way to force the window_manager to honor decoration request? If you have some buggy WM change it to something else.
#include <gtkmm.h> using namespace Gtk; class MyWindow : public Gtk::Window { public: MyWindow() {}; void on_realize() { Window::on_realize(); Glib::RefPtr<Gdk::Window> gdk_win = this->get_window(); gdk_win->set_decorations(Gdk::DECOR_TITLE | Gdk::DECOR_BORDER ); } }; int main(int argc, char **argv) { Main app(argc, argv); MyWindow win; app.run(win); return 0; }
Attachment:
Gtk_window_decors.png
Description: PNG image