From: dooglus Date: Wed, 11 Apr 2007 14:35:44 +0000 (+0000) Subject: Disable the 'set_transient_for()' call unless environment variable SYNFIG_TRANSIENT_D... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0a5b5d3aab454a07d22f3b8e0673bc3c1e5333e8;p=synfig.git 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 --- 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);