Disable the 'set_transient_for()' call unless environment variable SYNFIG_TRANSIENT_D...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 11 Apr 2007 14:35:44 +0000 (14:35 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 11 Apr 2007 14:35:44 +0000 (14:35 +0000)
git-svn-id: http://svn.voria.com/code@454 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/dockdialog.cpp

index ec9c6e8..abe3fbe 100644 (file)
@@ -103,7 +103,9 @@ DockDialog::DockDialog():
 
        //! \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);
+       // this seems to have bad effects on KDE, so leave it disabled by default
+       if(getenv("SYNFIG_TRANSIENT_DIALOGS"))
+               set_transient_for(*App::toolbox);
 
        // Set up the window
        //set_type_hint(Gdk::WINDOW_TYPE_HINT_UTILITY);