+ set_id(synfig::UniqueID().get_uid()^reinterpret_cast<long>(this));
+
+ set_role(strprintf("dock_dialog_%d",get_id()));
+ GRAB_HINT_DATA(
+ "dock_dialog",
+#ifdef __APPLE__
+ Gdk::WINDOW_TYPE_HINT_NORMAL
+#else
+ Gdk::WINDOW_TYPE_HINT_UTILITY
+#endif
+ );
+ 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
+ // this seems to have bad effects on KDE, so leave it disabled by default
+ if(getenv("SYNFIG_TRANSIENT_DIALOGS"))
+ set_transient_for(*App::toolbox);
+