Skip to content

Commit b8c429f

Browse files
ids1024Drakulix
authored andcommitted
Add COSMIC_DISABLE_DIRECT_SCANOUT env var
Like `anvil`. Useful for testing and working around issues.
1 parent 087be20 commit b8c429f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/kms/surface/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,10 @@ impl SurfaceThreadState {
624624
cursor_size,
625625
Some(gbm),
626626
) {
627-
Ok(compositor) => {
627+
Ok(mut compositor) => {
628+
if crate::utils::env::bool_var("COSMIC_DISABLE_DIRECT_SCANOUT").unwrap_or(false) {
629+
compositor.use_direct_scanout(false);
630+
}
628631
self.active.store(true, Ordering::SeqCst);
629632
self.compositor = Some(compositor);
630633
Ok(())

0 commit comments

Comments
 (0)