diff --git a/debian/changelog b/debian/changelog index 73a61c9..4059a48 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +obconf-qt (0.16.0-1ubuntu2) jammy; urgency=medium + + * Fix center window on opening not working. + * Update watch file. + + -- Walter Lapchynski Wed, 20 Mar 2024 23:27:52 +0000 + obconf-qt (0.16.0-1ubuntu1) hirsute; urgency=medium * New upstream version. diff --git a/debian/patches/fix-center-window-on-opening.patch b/debian/patches/fix-center-window-on-opening.patch new file mode 100644 index 0000000..0c0c6ce --- /dev/null +++ b/debian/patches/fix-center-window-on-opening.patch @@ -0,0 +1,36 @@ +Description: Fix center window on opening not working +Author: zhrexl +Applied-Upstream: https://github.com/lxqt/obconf-qt/commit/3e103ecfa677d9a2fefb400d44c0b875e533d9da +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- 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); +--- a/src/windows.cpp ++++ b/src/windows.cpp +@@ -41,6 +41,7 @@ extern RrInstance* rrinst; // defined in + 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_valueC + 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 ? diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..48a6dab --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +fix-center-window-on-opening.patch diff --git a/debian/watch b/debian/watch index a7f1685..a544020 100644 --- a/debian/watch +++ b/debian/watch @@ -1,3 +1,5 @@ version=4 -opts="pgpsigurlmangle=s/$/.asc/" \ -https://github.com/lxqt/obconf-qt/releases .*/obconf-qt-([\d\.]+).tar.xz +opts="searchmode=plain, \ +pgpsigurlmangle=s/$/.asc/, \ +uversionmangle=s/(\d+\.\d+\.\d+).*/$1/" \ + https://api.github.com/repos/lxqt/@PACKAGE@/releases https:\/\/github.com\/lxqt\/@PACKAGE@\/releases\/download\/@ANY_VERSION@\/@PACKAGE@-@ANY_VERSION@.tar.xz