mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-06-11 00:47:22 +00:00
Stabilize nested preview startup
Use a concrete wallpaper image in generated shell config. Disable KSycoca watches when preview opts out, and keep the convergent window connection target nullable.
This commit is contained in:
parent
d2b3445f98
commit
f2f6f6f890
3 changed files with 6 additions and 4 deletions
|
|
@ -138,7 +138,7 @@ include(CheckIncludeFiles)
|
||||||
|
|
||||||
ecm_find_qmlmodule(org.kde.pipewire 0.1)
|
ecm_find_qmlmodule(org.kde.pipewire 0.1)
|
||||||
|
|
||||||
set(SHIFT_DEFAULT_WALLPAPER_URL "file://${KDE_INSTALL_FULL_WALLPAPERDIR}/SHIFT/")
|
set(SHIFT_DEFAULT_WALLPAPER_URL "file://${KDE_INSTALL_FULL_WALLPAPERDIR}/SHIFT/contents/images_dark/5120x2880.png")
|
||||||
set(SHIFT_SHELL_PACKAGE_DIR "${CMAKE_CURRENT_BINARY_DIR}/shell")
|
set(SHIFT_SHELL_PACKAGE_DIR "${CMAKE_CURRENT_BINARY_DIR}/shell")
|
||||||
file(REMOVE_RECURSE "${SHIFT_SHELL_PACKAGE_DIR}")
|
file(REMOVE_RECURSE "${SHIFT_SHELL_PACKAGE_DIR}")
|
||||||
file(COPY shell/ DESTINATION "${SHIFT_SHELL_PACKAGE_DIR}" PATTERN "layout.js.in" EXCLUDE)
|
file(COPY shell/ DESTINATION "${SHIFT_SHELL_PACKAGE_DIR}" PATTERN "layout.js.in" EXCLUDE)
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,9 @@ ApplicationListModel::ApplicationListModel(HomeScreen *parent)
|
||||||
m_reloadAppsTimer->setInterval(100ms);
|
m_reloadAppsTimer->setInterval(100ms);
|
||||||
connect(m_reloadAppsTimer, &QTimer::timeout, this, &ApplicationListModel::sycocaDbChanged);
|
connect(m_reloadAppsTimer, &QTimer::timeout, this, &ApplicationListModel::sycocaDbChanged);
|
||||||
|
|
||||||
connect(KSycoca::self(), &KSycoca::databaseChanged, m_reloadAppsTimer, static_cast<void (QTimer::*)()>(&QTimer::start));
|
if (!qEnvironmentVariableIsSet("SHIFT_PREVIEW_DISABLE_SYCOCA_WATCH")) {
|
||||||
|
connect(KSycoca::self(), &KSycoca::databaseChanged, m_reloadAppsTimer, static_cast<void (QTimer::*)()>(&QTimer::start));
|
||||||
|
}
|
||||||
|
|
||||||
// initialize wayland window checking
|
// initialize wayland window checking
|
||||||
KWayland::Client::ConnectionThread *connection = KWayland::Client::ConnectionThread::fromApplication(this);
|
KWayland::Client::ConnectionThread *connection = KWayland::Client::ConnectionThread::fromApplication(this);
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ import org.kde.plasma.private.mobileshell.shellsettingsplugin as ShellSettings
|
||||||
Loader {
|
Loader {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
property var currentWindow
|
property var currentWindow: null
|
||||||
|
|
||||||
// Windows awaiting geometry clamping after un-maximize in convergence
|
// Windows awaiting geometry clamping after un-maximize in convergence
|
||||||
// mode. Using an array so concurrent un-maximizes are not lost.
|
// mode. Using an array so concurrent un-maximizes are not lost.
|
||||||
|
|
@ -97,7 +97,7 @@ Loader {
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: currentWindow
|
target: root.currentWindow
|
||||||
|
|
||||||
function onFullScreenChanged() {
|
function onFullScreenChanged() {
|
||||||
if (!currentWindow) {
|
if (!currentWindow) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue