fix(displays): pass current refresh rate to cosmic-randr when changing monitor position (#2139)

This commit is contained in:
Alexander Anthis 2026-08-20 14:03:20 -07:00 • committed by GitHub
parent 69a4311903
commit 2b43c925a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1103,6 +1103,12 @@ impl Page {
.arg(itoa::Buffer::new().format(x)) .arg(itoa::Buffer::new().format(x))
.arg("--pos-y") .arg("--pos-y")
.arg(itoa::Buffer::new().format(y)) .arg(itoa::Buffer::new().format(y))
.arg("--refresh")
.arg(format!(
"{}.{:03}",
current.refresh_rate / 1000,
current.refresh_rate % 1000
))
.arg(name) .arg(name)
.arg(itoa::Buffer::new().format(current.size.0)) .arg(itoa::Buffer::new().format(current.size.0))
.arg(itoa::Buffer::new().format(current.size.1)); .arg(itoa::Buffer::new().format(current.size.1));