aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cursor.rs2
-rw-r--r--src/handlers/compositor.rs2
-rw-r--r--src/layout/workspace.rs2
-rw-r--r--src/niri.rs10
4 files changed, 8 insertions, 8 deletions
diff --git a/src/cursor.rs b/src/cursor.rs
index e31808a9..041895ba 100644
--- a/src/cursor.rs
+++ b/src/cursor.rs
@@ -142,7 +142,7 @@ impl CursorManager {
.unwrap()
}
- /// Currenly used cursor_image as a cursor provider.
+ /// Currently used cursor_image as a cursor provider.
pub fn cursor_image(&self) -> &CursorImageStatus {
&self.current_cursor
}
diff --git a/src/handlers/compositor.rs b/src/handlers/compositor.rs
index db14b20e..0d64faa3 100644
--- a/src/handlers/compositor.rs
+++ b/src/handlers/compositor.rs
@@ -132,7 +132,7 @@ impl CompositorHandler for State {
let output =
output.filter(|o| self.niri.layout.monitor_for_output(o).is_some());
- // Chech that the workspace still exists.
+ // Check that the workspace still exists.
let workspace_name = workspace_name
.filter(|n| self.niri.layout.find_workspace_by_name(n).is_some());
diff --git a/src/layout/workspace.rs b/src/layout/workspace.rs
index 1947475a..fadbf00c 100644
--- a/src/layout/workspace.rs
+++ b/src/layout/workspace.rs
@@ -3355,7 +3355,7 @@ fn compute_new_view_offset(
return -(new_col_x - cur_x);
}
- // Otherwise, prefer the aligment that results in less motion from the current position.
+ // Otherwise, prefer the alignment that results in less motion from the current position.
let dist_to_left = cur_x.abs_diff(new_x);
let dist_to_right = (cur_x + view_width).abs_diff(new_right_x);
if dist_to_left <= dist_to_right {
diff --git a/src/niri.rs b/src/niri.rs
index d276a4e8..7da671c2 100644
--- a/src/niri.rs
+++ b/src/niri.rs
@@ -161,7 +161,7 @@ pub struct Niri {
pub is_at_startup: bool,
// Each workspace corresponds to a Space. Each workspace generally has one Output mapped to it,
- // however it may have none (when there are no outputs connected) or mutiple (when mirroring).
+ // however it may have none (when there are no outputs connected) or multiple (when mirroring).
pub layout: Layout<Mapped>,
// This space does not actually contain any windows, but all outputs are mapped into it
@@ -236,7 +236,7 @@ pub struct Niri {
/// When this happens, the pointer also loses any focus. This is so that touch can prevent
/// various tooltips from sticking around.
pub pointer_hidden: bool,
- // FIXME: this should be able to be removed once PointerFocus takes grabs into accound.
+ // FIXME: this should be able to be removed once PointerFocus takes grabs into account.
pub pointer_grab_ongoing: bool,
pub tablet_cursor_location: Option<Point<f64, Logical>>,
pub gesture_swipe_3f_cumulative: Option<(f64, f64)>,
@@ -377,7 +377,7 @@ struct SurfaceFrameThrottlingState {
}
pub enum CenterCoords {
- Seperately,
+ Separately,
Both,
}
@@ -535,7 +535,7 @@ impl State {
let y_in_bound = cur_loc.y >= rect.loc.y && cur_loc.y <= rect.loc.y + rect.size.h;
let p = match mode {
- CenterCoords::Seperately => {
+ CenterCoords::Separately => {
if x_in_bound && y_in_bound {
return false;
} else if y_in_bound {
@@ -596,7 +596,7 @@ impl State {
return false;
}
- self.move_cursor_to_focused_tile(CenterCoords::Seperately)
+ self.move_cursor_to_focused_tile(CenterCoords::Separately)
}
pub fn maybe_warp_cursor_to_focus_centered(&mut self) -> bool {