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 {
565 565
566 let mut planes = surface.planes().clone();566 let mut planes = surface.planes().clone();
567 567
568+ let config = self.config.borrow();
569+
568 // Overlay planes are disabled by default as they cause weird performance issues on my570 // Overlay planes are disabled by default as they cause weird performance issues on my
569 // system.571 // system.
570- if !self.config.borrow().debug.enable_overlay_planes {572+ if !config.debug.enable_overlay_planes {
571 planes.overlay.clear();573 planes.overlay.clear();
572 }574 }
573 575