shared memory size use the max resolution of all displays (#8534)

The case of setting a monitor inserted later as the primary monitor is not taken into account

Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
21pages
2024-06-29 21:50:21 +08:00
committed by GitHub
parent 4b6ba7938f
commit 5114a9d369
2 changed files with 8 additions and 3 deletions

View File

@@ -3150,6 +3150,7 @@ impl Connection {
.map(|t| t.0 = Instant::now());
}
#[cfg(feature = "hwcodec")]
fn update_supported_encoding(&mut self) {
let Some(last) = &self.last_supported_encoding else {
return;