Fix center window on opening not working
This commit is contained in:
parent
aa2ae9dafc
commit
552ca0e552
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -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 <wxl@ubuntu.com> Wed, 20 Mar 2024 23:27:52 +0000
|
||||||
|
|
||||||
obconf-qt (0.16.0-1ubuntu1) hirsute; urgency=medium
|
obconf-qt (0.16.0-1ubuntu1) hirsute; urgency=medium
|
||||||
|
|
||||||
* New upstream version.
|
* New upstream version.
|
||||||
|
36
debian/patches/fix-center-window-on-opening.patch
vendored
Normal file
36
debian/patches/fix-center-window-on-opening.patch
vendored
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
Description: Fix center window on opening not working
|
||||||
|
Author: zhrexl <doubzarref@gmail.com>
|
||||||
|
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 ?
|
1
debian/patches/series
vendored
Normal file
1
debian/patches/series
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
fix-center-window-on-opening.patch
|
6
debian/watch
vendored
6
debian/watch
vendored
@ -1,3 +1,5 @@
|
|||||||
version=4
|
version=4
|
||||||
opts="pgpsigurlmangle=s/$/.asc/" \
|
opts="searchmode=plain, \
|
||||||
https://github.com/lxqt/obconf-qt/releases .*/obconf-qt-([\d\.]+).tar.xz
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user