Add COSMIC_DISABLE_DIRECT_SCANOUT env var
Like `anvil`. Useful for testing and working around issues.
This commit is contained in:
parent
087be20365
commit
b8c429facb
1 changed files with 4 additions and 1 deletions
|
|
@ -624,7 +624,10 @@ impl SurfaceThreadState {
|
|||
cursor_size,
|
||||
Some(gbm),
|
||||
) {
|
||||
Ok(compositor) => {
|
||||
Ok(mut compositor) => {
|
||||
if crate::utils::env::bool_var("COSMIC_DISABLE_DIRECT_SCANOUT").unwrap_or(false) {
|
||||
compositor.use_direct_scanout(false);
|
||||
}
|
||||
self.active.store(true, Ordering::SeqCst);
|
||||
self.compositor = Some(compositor);
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue