From d33289c61a61d74e442e46cedb77b35ba1591afe Mon Sep 17 00:00:00 2001 From: dooglus Date: Fri, 6 Apr 2007 14:28:25 +0000 Subject: [PATCH] Set the dialog windows to be 'transient for' the toolbox window. In XFCE4 this makes all the dialogs jump to the front when the toolbox is brought to the front. In GNOME this was happening already. Ideally, selecting any workspace window should bring all dialogs to the front. git-svn-id: http://svn.voria.com/code@441 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/dockdialog.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/synfig-studio/trunk/src/gtkmm/dockdialog.cpp b/synfig-studio/trunk/src/gtkmm/dockdialog.cpp index 9df2721..ec9c6e8 100644 --- a/synfig-studio/trunk/src/gtkmm/dockdialog.cpp +++ b/synfig-studio/trunk/src/gtkmm/dockdialog.cpp @@ -35,6 +35,7 @@ #include "dockdialog.h" #include "dockbook.h" #include "dockmanager.h" +#include "toolbox.h" #include "widget_compselect.h" #include #include @@ -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"); -- 2.7.4