Skip to content
Open
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
6 changes: 3 additions & 3 deletions Services/UI/WallpaperService.qml
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ Singleton {
} else {
// Pick a random wallpaper common to all screens
// We can use any screenName here, so we just pick the primary one.
var wallpaperList = getWallpapersList(Screen.name);
var wallpaperList = getWallpapersList(Quickshell.screens[0].name);
if (wallpaperList.length > 0) {
var randomPath = _pickUnusedRandom("all", wallpaperList);
changeWallpaper(randomPath, screen);
Expand Down Expand Up @@ -892,13 +892,13 @@ Singleton {
}
} else {
// Pick next alphabetical wallpaper common to all screens
var wallpaperList = getWallpapersList(Screen.name);
var wallpaperList = getWallpapersList(Quickshell.screens[0].name);
if (wallpaperList.length > 0) {
// Use primary screen name as key for single directory mode
var key = "all";
if (alphabeticalIndices[key] === undefined) {
// Find current wallpaper in list to set initial index
var currentWallpaper = getWallpaper(Screen.name) || "";
var currentWallpaper = getWallpaper(Quickshell.screens[0].name) || "";
var foundIndex = wallpaperList.indexOf(currentWallpaper);
alphabeticalIndices[key] = (foundIndex >= 0) ? foundIndex : 0;
}
Expand Down