srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/crates/wayland/src/winit/platform.rs
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2024-08-03 20:07:00 +0200
committersrdusr <[email protected]>2024-08-03 20:07:00 +0200
commit35a28a257644483495ac2bd6a5fb1e109e8c1f26 (patch)
tree37944a7a2a61bf7ff977fa6349742d1a53ed5ad3 /crates/wayland/src/winit/platform.rs
parentf166df4d979162ae09b439c87cdc64f2b0981308 (diff)
downloadsrdwm-35a28a257644483495ac2bd6a5fb1e109e8c1f26.tar.gz
srdwm-35a28a257644483495ac2bd6a5fb1e109e8c1f26.zip
Fix doc-comment file references left stale by today's six module splits
~17 comments across the codebase still pointed at udev.rs/winit.rs/ state.rs by their old flat-file names after those became udev/, winit/, state/ directories - found while auditing what this work rushed, since the split verification (function/struct-name diffing, full test suite) checked structural correctness but never comment accuracy. Updated each to either the specific new file (e.g. "see state.rs's REPEAT_DELAY" -> "see state/mod.rs's REPEAT_DELAY", "udev.rs's monitors()" -> "udev/platform.rs's monitors()") or the bare module name where the reference was already generic ("the udev/winit backends", not a specific location).
Diffstat (limited to 'crates/wayland/src/winit/platform.rs')
-rw-r--r--crates/wayland/src/winit/platform.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/wayland/src/winit/platform.rs b/crates/wayland/src/winit/platform.rs
index eee42a9..e5b0b89 100644
--- a/crates/wayland/src/winit/platform.rs
+++ b/crates/wayland/src/winit/platform.rs
@@ -54,14 +54,14 @@ impl Platform for WaylandPlatform {
fn monitors(&mut self) -> PlatformResult<Vec<srdwm_core::Monitor>> {
// Shrunk by any layer-shell exclusive zone - see the matching
- // comment in `udev.rs`'s `monitors()`. This backend is always a
+ // comment in `udev/platform.rs`'s `monitors()`. This backend is always a
// single output at the global origin, so the output-local zone
// rectangle already is the usable global-space rect.
let zone = layer_map_for_output(&self.output).non_exclusive_zone();
Ok(vec![{
let rect = srdwm_core::Rect::new(zone.loc.x, zone.loc.y, zone.size.w as u32, zone.size.h as u32);
let mut m = srdwm_core::Monitor::new(0, "winit", rect);
- // Same fix as `udev.rs`'s matching function: `Monitor::new`
+ // Same fix as `udev/platform.rs`'s matching function: `Monitor::new`
// defaults `full_geometry` to `geometry`, which is already
// zone-shrunk here - without this, `toggle_fullscreen` had no
// way to actually cover a bar/dock's reserved strip, since the
@@ -84,7 +84,7 @@ impl Platform for WaylandPlatform {
Ok(())
}
- /// See `udev.rs`'s matching impl for why this has to go through
+ /// See `udev/platform.rs`'s matching impl for why this has to go through
/// `crate::input::focus_window` (the same path a real mouse click
/// already uses) rather than only touching core state.
fn focus(&mut self, window: WindowId) -> PlatformResult<()> {