Skip to content

Commit

Permalink
Add COSMIC_DISABLE_DIRECT_SCANOUT env var
Browse files Browse the repository at this point in the history
Like `anvil`. Useful for testing and working around issues.
  • Loading branch information
ids1024 authored and Drakulix committed Oct 15, 2024
1 parent 087be20 commit b8c429f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/backend/kms/surface/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
Expand Down

0 comments on commit b8c429f

Please sign in to comment.