Compare commits

..

3 Commits

Author SHA1 Message Date
e31ccd9327 Undo KWindowSystem port 2023-11-13 15:27:04 -06:00
f565094412 Backport to Jammy 2023-11-13 15:26:24 -06:00
2560ba5fb8 Backport to Jammy. 2023-08-11 14:22:08 -05:00
6 changed files with 172 additions and 108 deletions

44
debian/changelog vendored
View File

@ -1,45 +1,9 @@
lxqt-runner (2.2.0-0ubuntu1) questing; urgency=medium
lxqt-runner (1.4.0-0ubuntu1~ppa1) jammy; urgency=medium
* New upstream release.
- Update build dependencies.
* Update copyright file.
* Update Standards-Version to 4.7.2, no changes needed.
* Backport to Jammy.
* Revert KWindowSystem port to make the package compatible with Jammy.
-- Aaron Rainbolt <arraybolt3@ubuntu.com> Thu, 31 Jul 2025 15:42:09 -0500
lxqt-runner (2.1.2-0ubuntu2) plucky; urgency=medium
* Update Standards-Version to 4.7.1, no changes needed.
-- Simon Quigley <tsimonq2@ubuntu.com> Fri, 21 Feb 2025 16:38:18 -0600
lxqt-runner (2.1.2-0ubuntu1) plucky; urgency=medium
* New upstream release.
-- Simon Quigley <tsimonq2@ubuntu.com> Tue, 04 Feb 2025 15:25:10 -0600
lxqt-runner (2.1.1-0ubuntu1) plucky; urgency=medium
* New upstream release.
-- Simon Quigley <tsimonq2@ubuntu.com> Sat, 11 Jan 2025 16:55:28 -0600
lxqt-runner (2.1.0-0ubuntu1) plucky; urgency=medium
* New upstream release.
- Bump build dependencies.
-- Simon Quigley <tsimonq2@ubuntu.com> Fri, 15 Nov 2024 15:33:10 -0600
lxqt-runner (2.0.0-0ubuntu1) oracular; urgency=medium
* New upstream release.
* Update copyright file.
* Bump Standards-Version to 4.7.0, no changes necessary.
* Adjust build dependencies.
-- Aaron Rainbolt <arraybolt3@ubuntu.com> Thu, 15 Aug 2024 16:29:58 -0500
-- Aaron Rainbolt <arraybolt3@gmail.com> Mon, 13 Nov 2023 15:11:31 -0600
lxqt-runner (1.4.0-0ubuntu1) noble; urgency=medium

26
debian/control vendored
View File

@ -1,27 +1,25 @@
Source: lxqt-runner
Maintainer: Lubuntu Developers <lubuntu-devel@lists.ubuntu.com>
Original-Maintainer: LXQt Packaging Team <pkg-lxqt-devel@lists.alioth.debian.org>
XSBC-Original-Maintainer: LXQt Packaging Team <pkg-lxqt-devel@lists.alioth.debian.org>
Uploaders: Alf Gaida <agaida@siduction.org>,
Andrew Lee (李健秋) <ajqlee@debian.org>,
ChangZhuo Chen (陳昌倬) <czchen@debian.org>
Section: x11
Priority: optional
Build-Depends: debhelper-compat (= 13),
layer-shell-qt (>= 6.0.0),
libkf6windowsystem-dev (>= 6.0.0),
liblayershellqtinterface-dev (>= 6.0.0),
liblxqt-globalkeys-ui2-dev (>= 2.2.0),
liblxqt-globalkeys2-dev (>= 2.2.0),
liblxqt2-dev (>= 2.2.0),
libkf5windowsystem-dev,
liblxqt-globalkeys-ui1-dev (>= 1.4.0),
liblxqt-globalkeys1-dev (>= 1.4.0),
liblxqt1-dev (>= 1.4.0),
libmuparser-dev,
libx11-dev,
qt6-svg-dev (>= 6.6.0),
qt6-wayland-dev (>= 6.6.0)
Standards-Version: 4.7.2
libqt5svg5-dev,
libqt5x11extras5-dev,
libx11-dev
Standards-Version: 4.6.2
Vcs-Browser: https://git.lubuntu.me/Lubuntu/lxqt-runner-packaging
Vcs-Git: https://git.lubuntu.me/Lubuntu/lxqt-runner-packaging.git
Debian-Vcs-Browser: https://salsa.debian.org/lxqt-team/lxqt-runner
Debian-Vcs-Git: https://salsa.debian.org/lxqt-team/lxqt-runner.git
XS-Debian-Vcs-Browser: https://salsa.debian.org/lxqt-team/lxqt-runner
XS-Debian-Vcs-Git: https://salsa.debian.org/lxqt-team/lxqt-runner.git
Rules-Requires-Root: no
Homepage: https://github.com/lxqt/lxqt-runner
@ -40,7 +38,7 @@ Package: lxqt-runner-l10n
Architecture: all
Multi-Arch: foreign
Section: localization
Depends: qt6-translations-l10n, ${misc:Depends}
Depends: qttranslations5-l10n, ${misc:Depends}
Description: Language package for lxqt-runner
The LXQt runner provides a GUI that comes up on the desktop and allows for
launching applications, doing some math or shutting down the system.

6
debian/copyright vendored
View File

@ -3,7 +3,7 @@ Upstream-Name: lxqt-runner
Source: https://github.com/lxqt/lxqt-runner
Files: *
Copyright: 2012-2025 LXQt team
Copyright: 2012-2023 LXQt team
2010-2013 Razor team
License: LGPL-2.1+
@ -14,8 +14,8 @@ Copyright: 2014-2019 Alf Gaida <agaida@siduction.org>
2015 ChangZhuo Chen <czchen@debian.org>
2021 apt-ghetto <apt-ghetto@protonmail.com>
2020-2021 Raman Sarda <theloudspeaker@lubuntu.me>
2018-2025 Simon Quigley <tsimonq2@ubuntu.com>
2023-2025 Aaron Rainbolt <arraybolt3@gmail.com>
2018-2023 Simon Qugley <tsimonq2@ubuntu.com>
2023 Aaron Rainbolt <arraybolt3@gmail.com>
License: LGPL-2.1+
License: LGPL-2.1+

View File

@ -0,0 +1,101 @@
Description: Revert KWindowSystem port
Jammy still uses older KWindowSystem, revert back to using it.
Author: Aaron Rainbolt
Origin: vendor
Last-Update: 2023-11-13
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f0772f1..27c1bf5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -25,7 +25,7 @@ cmake_dependent_option(RUNNER_VBOX_HEADLESS
)
# Minimum Versions
-set(KF5_MINIMUM_VERSION "5.101.0")
+set(KF5_MINIMUM_VERSION "5.36.0")
set(LIBMENUCACHE_MINIMUM_VERSION "1.1.0")
set(LXQT_MINIMUM_VERSION "1.4.0")
set(LXQT_GLOBALKEYS_MINIMUM_VERSION "1.4.0")
diff --git a/dialog.cpp b/dialog.cpp
index c0973e9..2f671a2 100644
--- a/dialog.cpp
+++ b/dialog.cpp
@@ -55,7 +55,6 @@
#include <QScrollBar>
#include <KWindowSystem/KWindowSystem>
-#include <KWindowSystem/KX11Extras>
#define DEFAULT_SHORTCUT "Alt+F2"
@@ -201,8 +200,8 @@ void Dialog::moveEvent(QMoveEvent *event)
************************************************/
void Dialog::showEvent(QShowEvent *event)
{
- connect(KX11Extras::self(), &KX11Extras::activeWindowChanged, this, &Dialog::onActiveWindowChanged);
- connect(KX11Extras::self(), &KX11Extras::currentDesktopChanged, this, &Dialog::onCurrentDesktopChanged);
+ connect(KWindowSystem::self(), &KWindowSystem::activeWindowChanged, this, &Dialog::onActiveWindowChanged);
+ connect(KWindowSystem::self(), &KWindowSystem::currentDesktopChanged, this, &Dialog::onCurrentDesktopChanged);
return QDialog::showEvent(event);
}
@@ -213,8 +212,8 @@ void Dialog::showEvent(QShowEvent *event)
void Dialog::hideEvent(QHideEvent *event)
{
QDialog::hideEvent(event);
- disconnect(KX11Extras::self(), &KX11Extras::currentDesktopChanged, this, &Dialog::onCurrentDesktopChanged);
- disconnect(KX11Extras::self(), &KX11Extras::activeWindowChanged, this, &Dialog::onActiveWindowChanged);
+ disconnect(KWindowSystem::self(), &KWindowSystem::currentDesktopChanged, this, &Dialog::onCurrentDesktopChanged);
+ disconnect(KWindowSystem::self(), &KWindowSystem::activeWindowChanged, this, &Dialog::onActiveWindowChanged);
}
@@ -349,7 +348,7 @@ void Dialog::showHide()
{
// Using KWindowSystem to detect the active window since
// QWidget::isActiveWindow is not working reliably.
- if (isVisible() && (KX11Extras::activeWindow() == winId()))
+ if (isVisible() && (KWindowSystem::activeWindow() == winId()))
{
hide();
}
@@ -357,7 +356,7 @@ void Dialog::showHide()
{
realign();
show();
- KX11Extras::forceActiveWindow(winId());
+ KWindowSystem::forceActiveWindow(winId());
ui->commandEd->setFocus();
ui->commandEd->selectAll();
}
@@ -378,7 +377,7 @@ void Dialog::realign()
screenNumber = screen ? screens.indexOf(screen) : 0;
}
- desktop = screens.at(screenNumber)->availableGeometry().intersected(KX11Extras::workArea(screenNumber));
+ desktop = screens.at(screenNumber)->availableGeometry().intersected(KWindowSystem::workArea(screenNumber));
QRect rect = this->geometry();
rect.moveCenter(desktop.center());
@@ -452,7 +451,7 @@ void Dialog::onActiveWindowChanged(WId id)
if (mDesktopChanged)
{
mDesktopChanged = false;
- KX11Extras::forceActiveWindow(winId());
+ KWindowSystem::forceActiveWindow(winId());
} else
{
hide();
@@ -468,8 +467,8 @@ void Dialog::onCurrentDesktopChanged(int screen)
{
if (isVisible())
{
- KX11Extras::setOnDesktop(winId(), screen);
- KX11Extras::forceActiveWindow(winId());
+ KWindowSystem::setOnDesktop(winId(), screen);
+ KWindowSystem::forceActiveWindow(winId());
//Note: workaround for changing desktop while runner is shown
// The KWindowSystem::forceActiveWindow may fail to correctly activate runner if there
// are any other windows on the new desktop (probably because of the sequence while WM

1
debian/patches/series vendored Normal file
View File

@ -0,0 +1 @@
0001-revert-kwindowsystem-port.patch