Skip to content

Commit

Permalink
chore: typo COMPOSITOR
Browse files Browse the repository at this point in the history
fix COMPOSITER to COMPOSITOR.

Log:
  • Loading branch information
Clauszy committed Jan 18, 2024
1 parent 702c041 commit a47d6ab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/apps/dde-desktop/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static bool pluginsLoad()

QStringList blackNames { DConfigManager::instance()->value(kPluginsDConfName, "desktop.blackList").toStringList() };
#ifdef COMPILE_ON_V23
if (qEnvironmentVariable("DDE_CURRENT_COMPOSITER") == "TreeLand") {
if (qEnvironmentVariable("DDE_CURRENT_COMPOSITOR") == "TreeLand") {
qCInfo(logAppDesktop) << "disable background by TreeLand";
if (!blackNames.contains("ddplugin-background")) {
blackNames.append("ddplugin-background");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ qreal ScreenProxyQt::devicePixelRatio() const
DisplayMode ScreenProxyQt::displayMode() const
{
#ifdef COMPILE_ON_V23
if (qEnvironmentVariable("DDE_CURRENT_COMPOSITER") == "TreeLand") {
if (qEnvironmentVariable("DDE_CURRENT_COMPOSITOR") == "TreeLand") {
return DisplayMode::kShowonly;
}
#endif
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/desktop/ddplugin-wallpapersetting/wlsetplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void EventHandle::startTreeland()

bool EventHandle::wallpaperSetting(const QString &name)
{
if (qEnvironmentVariable("DDE_CURRENT_COMPOSITER") == "TreeLand") {
if (qEnvironmentVariable("DDE_CURRENT_COMPOSITOR") == "TreeLand") {
startTreeland();
} else {
show(name, (int)WallpaperSettings::Mode::WallpaperMode);
Expand All @@ -108,7 +108,7 @@ bool EventHandle::wallpaperSetting(const QString &name)

bool EventHandle::screenSaverSetting(const QString &name)
{
if (qEnvironmentVariable("DDE_CURRENT_COMPOSITER") == "TreeLand") {
if (qEnvironmentVariable("DDE_CURRENT_COMPOSITOR") == "TreeLand") {
startTreeland();
} else {
show(name, (int)WallpaperSettings::Mode::ScreenSaverMode);
Expand Down

0 comments on commit a47d6ab

Please sign in to comment.