Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:Changing desktop wallpaper will synchronize the changes to the lock #2261

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <QWindow>
#include <QVBoxLayout>
#include <QPushButton>
#include <QScreen>

#ifdef COMPILE_ON_V23
# define APPEARANCE_SERVICE "org.deepin.dde.Appearance1"
Expand Down Expand Up @@ -1131,11 +1132,17 @@ void WallpaperSettings::applyToDesktop()

fmDebug() << "dbus Appearance SetMonitorBackground is called " << d->screenName << " " << d->currentSelectedWallpaper;
QList<QVariant> argumentList;
argumentList << QVariant::fromValue(d->screenName) << QVariant::fromValue(d->currentSelectedWallpaper);
d->appearanceIfs->asyncCallWithArgumentList(QStringLiteral("SetMonitorBackground"), argumentList);
fmDebug() << "dbus Appearance SetMonitorBackground end";
QList<QScreen*> allScreensList=QApplication::screens();
if(allScreensList.size()){
for (QScreen*tmp :allScreensList) {
argumentList << QVariant::fromValue(tmp->name()) << QVariant::fromValue(d->currentSelectedWallpaper);
d->appearanceIfs->asyncCallWithArgumentList(QStringLiteral("SetMonitorBackground"), argumentList);
fmDebug() << "dbus Appearance SetMonitorBackground end";

emit backgroundChanged();
}
}

emit backgroundChanged();
}

void WallpaperSettings::applyToGreeter()
Expand Down
Loading