fix(displays): pass current refresh rate to cosmic-randr when changing monitor position (#2139)
This commit is contained in:
parent
69a4311903
commit
2b43c925a0
1 changed files with 6 additions and 0 deletions
|
|
@ -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));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue