diff --git a/src/maindialog.h b/src/maindialog.h index 7e86c66..03b1057 100644 --- a/src/maindialog.h +++ b/src/maindialog.h @@ -101,6 +101,7 @@ private Q_SLOTS: void on_fixed_monitor_valueChanged(int newValue); void on_focus_new_toggled(bool checked); void on_place_mouse_toggled(bool checked); + void on_place_center_toggled(bool checked); void on_place_active_popup_currentIndexChanged(int index); void on_primary_monitor_popup_currentIndexChanged(int index); diff --git a/src/windows.cpp b/src/windows.cpp index df0cee3..354bec5 100644 --- a/src/windows.cpp +++ b/src/windows.cpp @@ -41,6 +41,7 @@ extern RrInstance* rrinst; // defined in obconf-qt.cpp void MainDialog::windows_setup_tab() { gchar* s; ui.focus_new->setChecked(tree_get_bool("focus/focusNew", TRUE)); + ui.place_center->setChecked(tree_get_bool("placement/center",TRUE)); s = tree_get_string("placement/policy", "Smart"); ui.place_mouse->setChecked(!g_ascii_strcasecmp(s, "UnderMouse")); @@ -111,7 +112,9 @@ void MainDialog::on_fixed_monitor_valueChanged(int newValue) { void MainDialog::on_focus_new_toggled(bool checked) { tree_set_bool("focus/focusNew", checked); } - +void MainDialog::on_place_center_toggled(bool checked){ + tree_set_bool("placement/center", checked); +} void MainDialog::on_place_mouse_toggled(bool checked) { tree_set_string("placement/policy", (checked ?