forge
Explore
Log in

Don't you dare go Hollow

34679c75a4735b11a0a42509201e6ea57f260e27bbb651Parent: 1d3820a
Using [`typos`](https://github.com/crate-ci/typos) cli
src/input/mod.rsmodified+1 -1
@@ -2973,7 +2973,7 @@ fn should_intercept_key(
2973 }2973 }
2974 }2974 }
2975 (_, false) => {2975 (_, false) => {
2976- // By this point, we know that the key was supressed on press. Even if we're inhibiting2976+ // By this point, we know that the key was suppressed on press. Even if we're inhibiting
2977 // shortcuts, we should still suppress the release.2977 // shortcuts, we should still suppress the release.
2978 // But we don't need to check for shortcuts inhibition here, because2978 // But we don't need to check for shortcuts inhibition here, because
2979 // if it was inhibited on press (forwarded to the client), it wouldn't be suppressed,2979 // if it was inhibited on press (forwarded to the client), it wouldn't be suppressed,
src/layout/mod.rsmodified+2 -2
@@ -3077,7 +3077,7 @@ impl<W: LayoutElement> Layout<W> {
3077 target.previous_workspace_id = Some(target.workspaces[target.active_workspace_idx].id());3077 target.previous_workspace_id = Some(target.workspaces[target.active_workspace_idx].id());
3078 3078
3079 if target.options.empty_workspace_above_first && target.workspaces.len() == 1 {3079 if target.options.empty_workspace_above_first && target.workspaces.len() == 1 {
3080- // Insert a new empty workspace on top to prepare for insertion of new workspce.3080+ // Insert a new empty workspace on top to prepare for insertion of new workspace.
3081 target.add_workspace_top();3081 target.add_workspace_top();
3082 }3082 }
3083 // Insert the workspace after the currently active one. Unless the currently active one is3083 // Insert the workspace after the currently active one. Unless the currently active one is
@@ -3159,7 +3159,7 @@ impl<W: LayoutElement> Layout<W> {
3159 target.previous_workspace_id = Some(target.workspaces[target.active_workspace_idx].id());3159 target.previous_workspace_id = Some(target.workspaces[target.active_workspace_idx].id());
3160 3160
3161 if target.options.empty_workspace_above_first && target.workspaces.len() == 1 {3161 if target.options.empty_workspace_above_first && target.workspaces.len() == 1 {
3162- // Insert a new empty workspace on top to prepare for insertion of new workspce.3162+ // Insert a new empty workspace on top to prepare for insertion of new workspace.
3163 target.add_workspace_top();3163 target.add_workspace_top();
3164 }3164 }
3165 // Insert the workspace after the currently active one. Unless the currently active one is3165 // Insert the workspace after the currently active one. Unless the currently active one is
src/tests/client.rsmodified+3 -3
@@ -62,7 +62,7 @@ pub struct Window {
62 pub viewport: WpViewport,62 pub viewport: WpViewport,
63 pub pending_configure: Configure,63 pub pending_configure: Configure,
64 pub configures_received: Vec<(u32, Configure)>,64 pub configures_received: Vec<(u32, Configure)>,
65- pub close_requsted: bool,65+ pub close_requested: bool,
66 66
67 pub configures_looked_at: usize,67 pub configures_looked_at: usize,
68 }68 }
@@ -194,7 +194,7 @@ impl State {
194 viewport,194 viewport,
195 pending_configure: Configure::default(),195 pending_configure: Configure::default(),
196 configures_received: Vec::new(),196 configures_received: Vec::new(),
197- close_requsted: false,197+ close_requested: false,
198 198
199 configures_looked_at: 0,199 configures_looked_at: 0,
200 };200 };
@@ -459,7 +459,7 @@ impl Dispatch<XdgToplevel, ()> for State {
459 .collect();459 .collect();
460 }460 }
461 xdg_toplevel::Event::Close => {461 xdg_toplevel::Event::Close => {
462- window.close_requsted = true;462+ window.close_requested = true;
463 }463 }
464 xdg_toplevel::Event::ConfigureBounds { width, height } => {464 xdg_toplevel::Event::ConfigureBounds { width, height } => {
465 window.pending_configure.bounds = Some((width, height));465 window.pending_configure.bounds = Some((width, height));
src/tests/fixture.rsmodified+1 -1
@@ -125,7 +125,7 @@ impl Fixture {
125 }125 }
126 }126 }
127 127
128- /// Rountrip twice in a row.128+ /// Roundtrip twice in a row.
129 ///129 ///
130 /// For some reason, when running tests on many threads at once, a single roundtrip is130 /// For some reason, when running tests on many threads at once, a single roundtrip is
131 /// sometimes not sufficient to get the configure events to the client.131 /// sometimes not sufficient to get the configure events to the client.
src/tests/window_opening.rsmodified+2 -2
@@ -339,7 +339,7 @@ window-rule {{
339 window.ack_last_and_commit();339 window.ack_last_and_commit();
340 f.double_roundtrip(id);340 f.double_roundtrip(id);
341 341
342- // Commit to the post-intial configures.342+ // Commit to the post-initial configures.
343 let window = f.client(id).window(&surface);343 let window = f.client(id).window(&surface);
344 let new_serial = window.configures_received.last().unwrap().0;344 let new_serial = window.configures_received.last().unwrap().0;
345 if new_serial != serial {345 if new_serial != serial {
@@ -582,7 +582,7 @@ window-rule {
582 window.ack_last_and_commit();582 window.ack_last_and_commit();
583 f.double_roundtrip(id);583 f.double_roundtrip(id);
584 584
585- // Commit to the post-intial configures.585+ // Commit to the post-initial configures.
586 let window = f.client(id).window(&surface);586 let window = f.client(id).window(&surface);
587 let new_serial = window.configures_received.last().unwrap().0;587 let new_serial = window.configures_received.last().unwrap().0;
588 if new_serial != serial {588 if new_serial != serial {
src/window/mapped.rsmodified+1 -1
@@ -778,7 +778,7 @@ impl LayoutElement for Mapped {
778 let _span =778 let _span =
779 trace_span!("send_pending_configure", surface = ?toplevel.wl_surface().id()).entered();779 trace_span!("send_pending_configure", surface = ?toplevel.wl_surface().id()).entered();
780 780
781- // Check for pending changes manually to account fo RequestSizeOnce::UseWindowSize.781+ // Check for pending changes manually to account for RequestSizeOnce::UseWindowSize.
782 let has_pending_changes = with_toplevel_role(self.toplevel(), |role| {782 let has_pending_changes = with_toplevel_role(self.toplevel(), |role| {
783 if role.server_pending.is_none() {783 if role.server_pending.is_none() {
784 return false;784 return false;