kms: Don't panic, if mode can't be updated
This commit is contained in:
parent
c7d4fa5d53
commit
a9489b50c5
1 changed files with 3 additions and 1 deletions
|
|
@ -1283,7 +1283,9 @@ impl KmsState {
|
|||
output_config.vrr,
|
||||
)?;
|
||||
}
|
||||
compositor.use_mode(*mode).unwrap();
|
||||
compositor
|
||||
.use_mode(*mode)
|
||||
.context("Failed to apply new mode")?;
|
||||
false
|
||||
} else {
|
||||
surface.vrr = drm_helpers::set_vrr(drm, *crtc, conn, output_config.vrr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue