fix: reload display config after randr change
This commit is contained in:
parent
f6e50f1d9b
commit
76df4c8991
1 changed files with 5 additions and 0 deletions
|
|
@ -293,6 +293,11 @@ impl Page {
|
|||
Message::RandrResult(result) => {
|
||||
if let Some(Err(why)) = Arc::into_inner(result) {
|
||||
tracing::error!(?why, "cosmic-randr error");
|
||||
} else {
|
||||
// Reload display info
|
||||
return cosmic::command::future(async move {
|
||||
crate::Message::PageMessage(on_enter().await)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue