mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
tty: Extract config variable
This commit is contained in:
+3
-1
@@ -565,9 +565,11 @@ impl Tty {
|
|||||||
|
|
||||||
let mut planes = surface.planes().clone();
|
let mut planes = surface.planes().clone();
|
||||||
|
|
||||||
|
let config = self.config.borrow();
|
||||||
|
|
||||||
// Overlay planes are disabled by default as they cause weird performance issues on my
|
// Overlay planes are disabled by default as they cause weird performance issues on my
|
||||||
// system.
|
// system.
|
||||||
if !self.config.borrow().debug.enable_overlay_planes {
|
if !config.debug.enable_overlay_planes {
|
||||||
planes.overlay.clear();
|
planes.overlay.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user