1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:47:35 +00:00

WindowServer: Rename WallpaperMode::{Scaled => Stretch}

This option was renamed from scaled to stretch in DisplaySettings in
699ba84, but since WindowServer receives a plain string and was not
updated, it wouldn't recognize the new renamed value as a valid option.
Turns out sending plain strings via IPC and only mapping them to enum
values on the receiving end is brittle, we should probably update
Desktop::set_wallpaper_mode() to use an enum as well at some point.

Fixes #5006.
This commit is contained in:
Linus Groh 2021-01-19 23:47:52 +01:00 committed by Andreas Kling
parent cb8e4be3b5
commit c6726f331e
2 changed files with 4 additions and 4 deletions

View file

@ -43,7 +43,7 @@ enum class WallpaperMode {
Simple,
Tile,
Center,
Scaled,
Stretch,
Unchecked
};