Set the dialog windows to be 'transient for' the toolbox window. In XFCE4 this makes...
[synfig.git] / synfig-studio / trunk / src / gtkmm / dockdialog.cpp
index 9df2721..ec9c6e8 100644 (file)
@@ -35,6 +35,7 @@
 #include "dockdialog.h"
 #include "dockbook.h"
 #include "dockmanager.h"
+#include "toolbox.h"
 #include "widget_compselect.h"
 #include <synfig/general.h>
 #include <synfig/uniqueid.h>
@@ -100,6 +101,10 @@ DockDialog::DockDialog():
        );
        set_keep_above(false);
 
+       //! \todo can we set dialog windows transient for all normal windows, not just the toolbox?
+       //! paragraph 3 of http://standards.freedesktop.org/wm-spec/1.3/ar01s07.html suggests we can
+       set_transient_for(*App::toolbox);
+
        // Set up the window
        //set_type_hint(Gdk::WINDOW_TYPE_HINT_UTILITY);
        set_title("Dock Dialog");