aboutsummaryrefslogtreecommitdiff
path: root/src/handlers
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-10-10 09:24:20 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2024-10-10 09:24:20 +0300
commitab7d81aae00e88395f85b629489512b4a7bac064 (patch)
tree239f976094a3454022754e218fb71c6fceee8431 /src/handlers
parente24723125f5ef91983735043fba893a940469686 (diff)
downloadniri-ab7d81aae00e88395f85b629489512b4a7bac064.tar.gz
niri-ab7d81aae00e88395f85b629489512b4a7bac064.tar.bz2
niri-ab7d81aae00e88395f85b629489512b4a7bac064.zip
layout: Reduce field visibility
The outside code isn't supposed to mess with the fields.
Diffstat (limited to 'src/handlers')
-rw-r--r--src/handlers/xdg_shell.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/handlers/xdg_shell.rs b/src/handlers/xdg_shell.rs
index 06c60a4c..031ef571 100644
--- a/src/handlers/xdg_shell.rs
+++ b/src/handlers/xdg_shell.rs
@@ -332,7 +332,7 @@ impl XdgShellHandler for State {
*output = mon
.filter(|(_, parent)| !parent)
- .map(|(mon, _)| mon.output.clone());
+ .map(|(mon, _)| mon.output().clone());
let mon = mon.map(|(mon, _)| mon);
let ws = mon
@@ -416,7 +416,7 @@ impl XdgShellHandler for State {
*output = mon
.filter(|(_, parent)| !parent)
- .map(|(mon, _)| mon.output.clone());
+ .map(|(mon, _)| mon.output().clone());
let mon = mon.map(|(mon, _)| mon);
let ws = workspace_name
@@ -694,7 +694,7 @@ impl State {
// mapped, it fetches the possibly changed parent's output again, and shows up there.
let output = mon
.filter(|(_, parent)| !parent)
- .map(|(mon, _)| mon.output.clone());
+ .map(|(mon, _)| mon.output().clone());
let mon = mon.map(|(mon, _)| mon);
let mut width = None;
@@ -747,7 +747,7 @@ impl State {
width,
is_full_width,
output,
- workspace_name: ws.and_then(|w| w.name.clone()),
+ workspace_name: ws.and_then(|w| w.name().cloned()),
};
toplevel.send_configure();