fix: reload display config after randr change

This commit is contained in:
Jason Hansen 2024-06-06 14:03:49 -06:00 committed by GitHub
parent f6e50f1d9b
commit 76df4c8991
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
});
}
}