mirror of
https://github.com/hyprwm/hyprpaper.git
synced 2024-12-22 04:19:47 +01:00
config: Fix desc:
wallpaper priority (#189)
There was misbehaviour from config. Say, we have next config: ``` ... wallpaper = , /path/to/generic.jpg wallpaper = DP-1, /path/to/port.jpg wallpaper = desc:My Monitor, /path/to/desc.jpg ``` Here the `DP-1` and `desc:My Monitor` are different monitors. _EXPECTED_: The `desc:My Monitor` renders `/path/to/desc.jpg` wallpaper _ACTUAL_: The `desc:My Monitor` renders `/path/to/generic.jpg` wallpaper Change-Id: I02c9495524bd620d5a58b9d934b07aded051f6c2
This commit is contained in:
parent
f1f7fc60f5
commit
e32a2c8d24
1 changed files with 9 additions and 7 deletions
|
@ -367,6 +367,7 @@ void CHyprpaper::ensureMonitorHasActiveWallpaper(SMonitor* pMonitor) {
|
|||
}
|
||||
}
|
||||
|
||||
if (!it->second) {
|
||||
for (auto& [mon, path1] : m_mMonitorActiveWallpapers) {
|
||||
if (mon == pMonitor->name) {
|
||||
for (auto& [path2, target] : m_mWallpaperTargets) {
|
||||
|
@ -378,6 +379,7 @@ void CHyprpaper::ensureMonitorHasActiveWallpaper(SMonitor* pMonitor) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!it->second) {
|
||||
// try to find a wildcard
|
||||
|
|
Loading…
Reference in a new issue