forge
Explore
Log in

Don't you dare go Hollow

tty: Extract config variable

Browse files at this commit

be6e25f5fb8d8f713512ef3e2ffbdfbb6e6dfe73Ivan MolodetskikhParent: e005a79
src/backend/tty.rsmodified+3 -1
@@ -565,9 +565,11 @@ impl Tty {
565565
566566 let mut planes = surface.planes().clone();
567567
568+ let config = self.config.borrow();
569+
568570 // Overlay planes are disabled by default as they cause weird performance issues on my
569571 // system.
570- if !self.config.borrow().debug.enable_overlay_planes {
572+ if !config.debug.enable_overlay_planes {
571573 planes.overlay.clear();
572574 }
573575