mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Fix typos
This commit is contained in:
+1
-1
@@ -4809,7 +4809,7 @@ impl<W: LayoutElement> Layout<W> {
|
|||||||
let wsid = ws.id();
|
let wsid = ws.id();
|
||||||
|
|
||||||
// if `empty_workspace_above_first` is set and `ws` is the first
|
// if `empty_workspace_above_first` is set and `ws` is the first
|
||||||
// worskpace on a monitor, another empty workspace needs to
|
// workspace on a monitor, another empty workspace needs to
|
||||||
// be added before.
|
// be added before.
|
||||||
// Conversely, if `ws` was the last workspace on a monitor, an
|
// Conversely, if `ws` was the last workspace on a monitor, an
|
||||||
// empty workspace needs to be added after.
|
// empty workspace needs to be added after.
|
||||||
|
|||||||
@@ -4025,7 +4025,7 @@ impl<W: LayoutElement> Column<W> {
|
|||||||
pub fn offset_move_anim_current(&mut self, offset: f64) {
|
pub fn offset_move_anim_current(&mut self, offset: f64) {
|
||||||
if let Some(move_) = self.move_animation.as_mut() {
|
if let Some(move_) = self.move_animation.as_mut() {
|
||||||
// If the anim is almost done, there's little point trying to offset it; we can let
|
// If the anim is almost done, there's little point trying to offset it; we can let
|
||||||
// things jump. If it turns out like a bad idea, we could restart the anim intead.
|
// things jump. If it turns out like a bad idea, we could restart the anim instead.
|
||||||
let value = move_.anim.value();
|
let value = move_.anim.value();
|
||||||
if value > 0.001 {
|
if value > 0.001 {
|
||||||
move_.from += offset / value;
|
move_.from += offset / value;
|
||||||
|
|||||||
+1
-1
@@ -489,7 +489,7 @@ impl<W: LayoutElement> Tile<W> {
|
|||||||
pub fn offset_move_y_anim_current(&mut self, offset: f64) {
|
pub fn offset_move_y_anim_current(&mut self, offset: f64) {
|
||||||
if let Some(move_) = self.move_y_animation.as_mut() {
|
if let Some(move_) = self.move_y_animation.as_mut() {
|
||||||
// If the anim is almost done, there's little point trying to offset it; we can let
|
// If the anim is almost done, there's little point trying to offset it; we can let
|
||||||
// things jump. If it turns out like a bad idea, we could restart the anim intead.
|
// things jump. If it turns out like a bad idea, we could restart the anim instead.
|
||||||
let value = move_.anim.value();
|
let value = move_.anim.value();
|
||||||
if value > 0.001 {
|
if value > 0.001 {
|
||||||
move_.from += offset / value;
|
move_.from += offset / value;
|
||||||
|
|||||||
Reference in New Issue
Block a user