From 0a5b5d3aab454a07d22f3b8e0673bc3c1e5333e8 Mon Sep 17 00:00:00 2001 From: dooglus Date: Wed, 11 Apr 2007 14:35:44 +0000 Subject: [PATCH] Disable the 'set_transient_for()' call unless environment variable SYNFIG_TRANSIENT_DIALOGS is set. This call was having a bad effect on KDE, making the dialog windows disappear and reappear as the mouse was moved from window to window. git-svn-id: http://svn.voria.com/code@454 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/dockdialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/synfig-studio/trunk/src/gtkmm/dockdialog.cpp b/synfig-studio/trunk/src/gtkmm/dockdialog.cpp index ec9c6e8..abe3fbe 100644 --- a/synfig-studio/trunk/src/gtkmm/dockdialog.cpp +++ b/synfig-studio/trunk/src/gtkmm/dockdialog.cpp @@ -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); -- 2.7.4