Fix typos (#1822)
Browse files at this commit5 changed files +17 -16
- src/render_helpers/mod.rs +1 -1
- src/tests/fullscreen.rs +1 -1
- src/utils/mod.rs +1 -1
- src/window/mapped.rs +12 -11
- wiki/Screencasting.md +2 -2
src/render_helpers/mod.rsmodified+1 -1
| @@ -226,7 +226,7 @@ pub fn render_and_download( | |||
| 226 | 226 | ||
| 227 | let buffer_size = size.to_logical(1).to_buffer(1, Transform::Normal); | 227 | let buffer_size = size.to_logical(1).to_buffer(1, Transform::Normal); |
| 228 | // FIXME: would be nice to avoid binding the second time here (after render_to_texture()), but | 228 | // FIXME: would be nice to avoid binding the second time here (after render_to_texture()), but |
| 229 | - // borrowing makes this invonvenient. | 229 | + // borrowing makes this inconvenient. |
| 230 | let target = renderer | 230 | let target = renderer |
| 231 | .bind(&mut texture) | 231 | .bind(&mut texture) |
| 232 | .context("error binding texture")?; | 232 | .context("error binding texture")?; |
src/tests/fullscreen.rsmodified+1 -1
| @@ -72,7 +72,7 @@ fn windowed_fullscreen() { | |||
| 72 | ); | 72 | ); |
| 73 | 73 | ||
| 74 | let mapped = f.niri().layout.windows().next().unwrap().1; | 74 | let mapped = f.niri().layout.windows().next().unwrap().1; |
| 75 | - // Not commited yet. | 75 | + // Not committed yet. |
| 76 | assert!(mapped.is_windowed_fullscreen()); | 76 | assert!(mapped.is_windowed_fullscreen()); |
| 77 | 77 | ||
| 78 | // Commit in response. | 78 | // Commit in response. |
src/utils/mod.rsmodified+1 -1
| @@ -294,7 +294,7 @@ pub fn update_tiled_state( | |||
| 294 | // global and never reset to None). | 294 | // global and never reset to None). |
| 295 | // | 295 | // |
| 296 | // If the client bound a decoration global, use the mode that we negotiated. This way, | 296 | // If the client bound a decoration global, use the mode that we negotiated. This way, |
| 297 | - // changing the decoration mode on the client at runtime will synchonize with the | 297 | + // changing the decoration mode on the client at runtime will synchronize with the |
| 298 | // default tiled state. | 298 | // default tiled state. |
| 299 | if let Some(mode) = toplevel.with_pending_state(|state| state.decoration_mode) { | 299 | if let Some(mode) = toplevel.with_pending_state(|state| state.decoration_mode) { |
| 300 | mode == zxdg_toplevel_decoration_v1::Mode::ServerSide | 300 | mode == zxdg_toplevel_decoration_v1::Mode::ServerSide |
src/window/mapped.rsmodified+12 -11
| @@ -147,18 +147,19 @@ pub struct Mapped { | |||
| 147 | /// fullscreen state, and keep the size (since it matches), resulting in no configure. | 147 | /// fullscreen state, and keep the size (since it matches), resulting in no configure. |
| 148 | /// | 148 | /// |
| 149 | /// So we work around this by emulating a configure-ack/commit cycle through | 149 | /// So we work around this by emulating a configure-ack/commit cycle through |
| 150 | - /// is_pending_windowed_fullscreen and uncommited_windowed_fullscreen. We ensure we send actual | 150 | + /// is_pending_windowed_fullscreen and uncommitted_windowed_fullscreen. We ensure we send |
| 151 | - /// configures in all cases through needs_configure. This can result in unnecessary configures | 151 | + /// actual configures in all cases through needs_configure. This can result in unnecessary |
| 152 | - /// (like in the example above), but in most cases there will be a configure anyway to change | 152 | + /// configures (like in the example above), but in most cases there will be a configure |
| 153 | - /// the Fullscreen state and/or the size. What this gives us is being able to synchronize our | 153 | + /// anyway to change the Fullscreen state and/or the size. What this gives us is being able |
| 154 | - /// windowed fullscreen state to the real window updates to avoid any flickering. | 154 | + /// to synchronize our windowed fullscreen state to the real window updates to avoid any |
| 155 | + /// flickering. | ||
| 155 | is_pending_windowed_fullscreen: bool, | 156 | is_pending_windowed_fullscreen: bool, |
| 156 | 157 | ||
| 157 | /// Pending windowed fullscreen updates. | 158 | /// Pending windowed fullscreen updates. |
| 158 | /// | 159 | /// |
| 159 | /// These have been "sent" to the window in form of configures, but the window hadn't committed | 160 | /// These have been "sent" to the window in form of configures, but the window hadn't committed |
| 160 | /// in response yet. | 161 | /// in response yet. |
| 161 | - uncommited_windowed_fullscreen: Vec<(Serial, bool)>, | 162 | + uncommitted_windowed_fullscreen: Vec<(Serial, bool)>, |
| 162 | } | 163 | } |
| 163 | 164 | ||
| 164 | niri_render_elements! { | 165 | niri_render_elements! { |
| @@ -251,7 +252,7 @@ impl Mapped { | |||
| 251 | last_interactive_resize_start: Cell::new(None), | 252 | last_interactive_resize_start: Cell::new(None), |
| 252 | is_windowed_fullscreen: false, | 253 | is_windowed_fullscreen: false, |
| 253 | is_pending_windowed_fullscreen: false, | 254 | is_pending_windowed_fullscreen: false, |
| 254 | - uncommited_windowed_fullscreen: Vec::new(), | 255 | + uncommitted_windowed_fullscreen: Vec::new(), |
| 255 | } | 256 | } |
| 256 | } | 257 | } |
| 257 | 258 | ||
| @@ -1004,12 +1005,12 @@ impl LayoutElement for Mapped { | |||
| 1004 | // If is_pending_windowed_fullscreen changed compared to the last value that we "sent" | 1005 | // If is_pending_windowed_fullscreen changed compared to the last value that we "sent" |
| 1005 | // to the window, store the configure serial. | 1006 | // to the window, store the configure serial. |
| 1006 | let last_sent_windowed_fullscreen = self | 1007 | let last_sent_windowed_fullscreen = self |
| 1007 | - .uncommited_windowed_fullscreen | 1008 | + .uncommitted_windowed_fullscreen |
| 1008 | .last() | 1009 | .last() |
| 1009 | .map(|(_, value)| *value) | 1010 | .map(|(_, value)| *value) |
| 1010 | .unwrap_or(self.is_windowed_fullscreen); | 1011 | .unwrap_or(self.is_windowed_fullscreen); |
| 1011 | if last_sent_windowed_fullscreen != self.is_pending_windowed_fullscreen { | 1012 | if last_sent_windowed_fullscreen != self.is_pending_windowed_fullscreen { |
| 1012 | - self.uncommited_windowed_fullscreen | 1013 | + self.uncommitted_windowed_fullscreen |
| 1013 | .push((serial, self.is_pending_windowed_fullscreen)); | 1014 | .push((serial, self.is_pending_windowed_fullscreen)); |
| 1014 | } | 1015 | } |
| 1015 | } else { | 1016 | } else { |
| @@ -1157,7 +1158,7 @@ impl LayoutElement for Mapped { | |||
| 1157 | } | 1158 | } |
| 1158 | }); | 1159 | }); |
| 1159 | 1160 | ||
| 1160 | - // Make sure we recieve a commit later to update self.is_windowed_fullscreen. | 1161 | + // Make sure we receive a commit later to update self.is_windowed_fullscreen. |
| 1161 | self.needs_configure = true; | 1162 | self.needs_configure = true; |
| 1162 | } | 1163 | } |
| 1163 | 1164 | ||
| @@ -1227,7 +1228,7 @@ impl LayoutElement for Mapped { | |||
| 1227 | } | 1228 | } |
| 1228 | 1229 | ||
| 1229 | // "Commit" our "acked" pending windowed fullscreen state. | 1230 | // "Commit" our "acked" pending windowed fullscreen state. |
| 1230 | - self.uncommited_windowed_fullscreen | 1231 | + self.uncommitted_windowed_fullscreen |
| 1231 | .retain_mut(|(serial, value)| { | 1232 | .retain_mut(|(serial, value)| { |
| 1232 | if commit_serial.is_no_older_than(serial) { | 1233 | if commit_serial.is_no_older_than(serial) { |
| 1233 | self.is_windowed_fullscreen = *value; | 1234 | self.is_windowed_fullscreen = *value; |
wiki/Screencasting.mdmodified+2 -2
| @@ -76,10 +76,10 @@ All dynamic casts share the same target, but new ones start out empty until the | |||
| 76 | 76 | ||
| 77 | <sup>Since: 25.02</sup> | 77 | <sup>Since: 25.02</sup> |
| 78 | 78 | ||
| 79 | -The [`is-window-cast-target=true` window rule](./Configuration:-Window-Rules.md#is-window-cast-target) matches windows targetted by an ongoing window screencast. | 79 | +The [`is-window-cast-target=true` window rule](./Configuration:-Window-Rules.md#is-window-cast-target) matches windows targeted by an ongoing window screencast. |
| 80 | You use it with a special border color to clearly indicate screencasted windows. | 80 | You use it with a special border color to clearly indicate screencasted windows. |
| 81 | 81 | ||
| 82 | -This also works for windows targetted by dynamic screencasts. | 82 | +This also works for windows targeted by dynamic screencasts. |
| 83 | However, it will not work for windows that just happen to be visible in a full-monitor screencast. | 83 | However, it will not work for windows that just happen to be visible in a full-monitor screencast. |
| 84 | 84 | ||
| 85 | ```kdl | 85 | ```kdl |