aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/tty.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/backend/tty.rs b/src/backend/tty.rs
index 7ac63422..86ce9b10 100644
--- a/src/backend/tty.rs
+++ b/src/backend/tty.rs
@@ -542,8 +542,13 @@ impl Tty {
});
let mut planes = surface.planes().clone();
- // Disable overlay planes as they cause weird performance issues on my system.
- planes.overlay.clear();
+
+ // Overlay planes are disabled by default as they cause weird performance issues on my
+ // system.
+ if !self.config.borrow().debug.enable_overlay_planes {
+ planes.overlay.clear();
+ }
+
let scanout_formats = planes
.primary
.formats