diff --git a/src/gui_builder.cc b/src/gui_builder.cc index a08dabd..e8ca872 100644 --- a/src/gui_builder.cc +++ b/src/gui_builder.cc @@ -650,13 +650,14 @@ GuiBuilder::GuiBuilder(const std::string& gladefile) simulation_jump_to->signal_clicked().connect(sigc::mem_fun(*this, &GuiBuilder::on_simulation_jump_to_clicked)); + Window& main_window = get_initial_window(); // HoltGraph container window - _holt_container.set_keep_above(); + _holt_container.set_transient_for(main_window); _holt_container.get_holt_widget().set_show_threads(_show_threads); _holt_container.show(); // Statistics container window - _statistics_container.set_keep_above(); + _statistics_container.set_transient_for(main_window); _statistics_container.show(); } diff --git a/src/holt_container_window.cc b/src/holt_container_window.cc index 9161a43..516a215 100644 --- a/src/holt_container_window.cc +++ b/src/holt_container_window.cc @@ -33,10 +33,12 @@ using namespace Glib; HoltContainerWindow::HoltContainerWindow(Simulation& simulation) -: _holt_widget(simulation), _auto_dispose(true) + : Window(), _holt_widget(simulation), _auto_dispose(true) { // This just sets the title of our new window. set_title(_("Holt Graph")); + set_type_hint(Gdk::WINDOW_TYPE_HINT_UTILITY); + add(_holt_widget); _holt_widget.set_scaling_mode(CairoWidget::scaling_min); _holt_widget.show(); diff --git a/src/statistics_container_window.cc b/src/statistics_container_window.cc index 936ee3f..b68ca39 100644 --- a/src/statistics_container_window.cc +++ b/src/statistics_container_window.cc @@ -28,6 +28,8 @@ StatisticsContainerWindow::StatisticsContainerWindow() { // This just sets the title of our new window. set_title(_("Simulation Statistics")); + set_type_hint(Gdk::WINDOW_TYPE_HINT_UTILITY); + _scrolled_tabular.add(_tabular_schedulables_statistics_widget); add(_scrolled_tabular); _scrolled_tabular.show();