mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Put Outputs config into a dedicated struct
This commit is contained in:
+3
-6
@@ -752,8 +752,7 @@ impl Tty {
|
||||
.config
|
||||
.borrow()
|
||||
.outputs
|
||||
.iter()
|
||||
.find(|o| o.name.eq_ignore_ascii_case(&output_name))
|
||||
.find(&output_name)
|
||||
.cloned()
|
||||
.unwrap_or_default();
|
||||
|
||||
@@ -1633,8 +1632,7 @@ impl Tty {
|
||||
.config
|
||||
.borrow()
|
||||
.outputs
|
||||
.iter()
|
||||
.find(|o| o.name.eq_ignore_ascii_case(&surface.name))
|
||||
.find(&surface.name)
|
||||
.cloned()
|
||||
.unwrap_or_default();
|
||||
if config.off {
|
||||
@@ -1763,8 +1761,7 @@ impl Tty {
|
||||
.config
|
||||
.borrow()
|
||||
.outputs
|
||||
.iter()
|
||||
.find(|o| o.name.eq_ignore_ascii_case(&output_name))
|
||||
.find(&output_name)
|
||||
.cloned()
|
||||
.unwrap_or_default();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user