mirror of
https://github.com/YaLTeR/niri.git
synced 2025-08-04 17:07:59 +00:00
Fix typos (#1822)
* Fix: Correct typo in xwayland module and update documentation This commit includes several improvements: 1. **Code Fix (clippy):** - I corrected a typo in `src/utils/xwayland/mod.rs` from `OFlags::WRONGLY` to `OFlags::WRONLY`. This was identified by `clippy` during the build process. 2. **Documentation Updates:** - **README.md**: - I clarified the sentence about finding help in the Matrix channel to be more inviting for new users. - I corrected a future date typo in the Media section for an interview (June 2025 to June 2024). - **wiki/Getting-Started.md**: - I changed the Russian month "мая" to "May" in an example output for better international readability. - I improved keybinding notation for monitor focus/move keys (e.g., Mod+Shift+H / J / K / L) to avoid ambiguity. - I updated `apt-get` to `apt` in Ubuntu dependency installation commands for modern practice. No new typos were found by `typos-cli` in this pass. * Revert README&GS.md to previous version * Apply rustfmt --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
This commit is contained in:
parent
e53f8527b0
commit
ed14e8da84
5 changed files with 17 additions and 16 deletions
|
@ -226,7 +226,7 @@ pub fn render_and_download(
|
|||
|
||||
let buffer_size = size.to_logical(1).to_buffer(1, Transform::Normal);
|
||||
// FIXME: would be nice to avoid binding the second time here (after render_to_texture()), but
|
||||
// borrowing makes this invonvenient.
|
||||
// borrowing makes this inconvenient.
|
||||
let target = renderer
|
||||
.bind(&mut texture)
|
||||
.context("error binding texture")?;
|
||||
|
|
|
@ -72,7 +72,7 @@ fn windowed_fullscreen() {
|
|||
);
|
||||
|
||||
let mapped = f.niri().layout.windows().next().unwrap().1;
|
||||
// Not commited yet.
|
||||
// Not committed yet.
|
||||
assert!(mapped.is_windowed_fullscreen());
|
||||
|
||||
// Commit in response.
|
||||
|
|
|
@ -294,7 +294,7 @@ pub fn update_tiled_state(
|
|||
// global and never reset to None).
|
||||
//
|
||||
// If the client bound a decoration global, use the mode that we negotiated. This way,
|
||||
// changing the decoration mode on the client at runtime will synchonize with the
|
||||
// changing the decoration mode on the client at runtime will synchronize with the
|
||||
// default tiled state.
|
||||
if let Some(mode) = toplevel.with_pending_state(|state| state.decoration_mode) {
|
||||
mode == zxdg_toplevel_decoration_v1::Mode::ServerSide
|
||||
|
|
|
@ -147,18 +147,19 @@ pub struct Mapped {
|
|||
/// fullscreen state, and keep the size (since it matches), resulting in no configure.
|
||||
///
|
||||
/// So we work around this by emulating a configure-ack/commit cycle through
|
||||
/// is_pending_windowed_fullscreen and uncommited_windowed_fullscreen. We ensure we send actual
|
||||
/// configures in all cases through needs_configure. This can result in unnecessary configures
|
||||
/// (like in the example above), but in most cases there will be a configure anyway to change
|
||||
/// the Fullscreen state and/or the size. What this gives us is being able to synchronize our
|
||||
/// windowed fullscreen state to the real window updates to avoid any flickering.
|
||||
/// is_pending_windowed_fullscreen and uncommitted_windowed_fullscreen. We ensure we send
|
||||
/// actual configures in all cases through needs_configure. This can result in unnecessary
|
||||
/// configures (like in the example above), but in most cases there will be a configure
|
||||
/// anyway to change the Fullscreen state and/or the size. What this gives us is being able
|
||||
/// to synchronize our windowed fullscreen state to the real window updates to avoid any
|
||||
/// flickering.
|
||||
is_pending_windowed_fullscreen: bool,
|
||||
|
||||
/// Pending windowed fullscreen updates.
|
||||
///
|
||||
/// These have been "sent" to the window in form of configures, but the window hadn't committed
|
||||
/// in response yet.
|
||||
uncommited_windowed_fullscreen: Vec<(Serial, bool)>,
|
||||
uncommitted_windowed_fullscreen: Vec<(Serial, bool)>,
|
||||
}
|
||||
|
||||
niri_render_elements! {
|
||||
|
@ -251,7 +252,7 @@ impl Mapped {
|
|||
last_interactive_resize_start: Cell::new(None),
|
||||
is_windowed_fullscreen: false,
|
||||
is_pending_windowed_fullscreen: false,
|
||||
uncommited_windowed_fullscreen: Vec::new(),
|
||||
uncommitted_windowed_fullscreen: Vec::new(),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1004,12 +1005,12 @@ impl LayoutElement for Mapped {
|
|||
// If is_pending_windowed_fullscreen changed compared to the last value that we "sent"
|
||||
// to the window, store the configure serial.
|
||||
let last_sent_windowed_fullscreen = self
|
||||
.uncommited_windowed_fullscreen
|
||||
.uncommitted_windowed_fullscreen
|
||||
.last()
|
||||
.map(|(_, value)| *value)
|
||||
.unwrap_or(self.is_windowed_fullscreen);
|
||||
if last_sent_windowed_fullscreen != self.is_pending_windowed_fullscreen {
|
||||
self.uncommited_windowed_fullscreen
|
||||
self.uncommitted_windowed_fullscreen
|
||||
.push((serial, self.is_pending_windowed_fullscreen));
|
||||
}
|
||||
} else {
|
||||
|
@ -1157,7 +1158,7 @@ impl LayoutElement for Mapped {
|
|||
}
|
||||
});
|
||||
|
||||
// Make sure we recieve a commit later to update self.is_windowed_fullscreen.
|
||||
// Make sure we receive a commit later to update self.is_windowed_fullscreen.
|
||||
self.needs_configure = true;
|
||||
}
|
||||
|
||||
|
@ -1227,7 +1228,7 @@ impl LayoutElement for Mapped {
|
|||
}
|
||||
|
||||
// "Commit" our "acked" pending windowed fullscreen state.
|
||||
self.uncommited_windowed_fullscreen
|
||||
self.uncommitted_windowed_fullscreen
|
||||
.retain_mut(|(serial, value)| {
|
||||
if commit_serial.is_no_older_than(serial) {
|
||||
self.is_windowed_fullscreen = *value;
|
||||
|
|
|
@ -76,10 +76,10 @@ All dynamic casts share the same target, but new ones start out empty until the
|
|||
|
||||
<sup>Since: 25.02</sup>
|
||||
|
||||
The [`is-window-cast-target=true` window rule](./Configuration:-Window-Rules.md#is-window-cast-target) matches windows targetted by an ongoing window screencast.
|
||||
The [`is-window-cast-target=true` window rule](./Configuration:-Window-Rules.md#is-window-cast-target) matches windows targeted by an ongoing window screencast.
|
||||
You use it with a special border color to clearly indicate screencasted windows.
|
||||
|
||||
This also works for windows targetted by dynamic screencasts.
|
||||
This also works for windows targeted by dynamic screencasts.
|
||||
However, it will not work for windows that just happen to be visible in a full-monitor screencast.
|
||||
|
||||
```kdl
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue