srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/crates/x11/src/platform
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2026-08-30 20:41:00 +0200
committersrdusr <[email protected]>2026-08-30 20:41:00 +0200
commitf2f9ed1b3f9c49b323ce591eb72a406058d324a4 (patch)
tree12a53c9c527c0a63a4d93ed197af3f9edf2fca79 /crates/x11/src/platform
parentbac91a6162542025676f57afc3e514b88aa65366 (diff)
downloadsrdwm-f2f9ed1b3f9c49b323ce591eb72a406058d324a4.tar.gz
srdwm-f2f9ed1b3f9c49b323ce591eb72a406058d324a4.zip
Indent doc list continuations
Diffstat (limited to 'crates/x11/src/platform')
-rw-r--r--crates/x11/src/platform/trait_impl.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/crates/x11/src/platform/trait_impl.rs b/crates/x11/src/platform/trait_impl.rs
index 6c68e9f..5e249cd 100644
--- a/crates/x11/src/platform/trait_impl.rs
+++ b/crates/x11/src/platform/trait_impl.rs
@@ -8,14 +8,14 @@ impl Platform for X11Platform {
/// Was `wait_for_event()` (blocks indefinitely for the first event,
/// only draining any backlog after that), which left `srd`'s IPC socket
/// - polled at the end of this method - unresponsive for as long as
- /// nothing happened on the X11 connection at all: no keypress, no mouse
- /// motion, nothing. A script sitting on `srd clients` while the user's
- /// hands were off the keyboard for a few seconds would just hang for
- /// exactly that long. Replaced with a bounded `poll(2)` on the
- /// connection's own fd (`~16ms`, matching the Wayland backends' own
- /// frame-ish cadence) so this method always returns roughly that often
- /// regardless of X11 activity, draining whatever's actually arrived
- /// (zero or more events) each time rather than requiring at least one.
+ /// nothing happened on the X11 connection at all: no keypress, no mouse
+ /// motion, nothing. A script sitting on `srd clients` while the user's
+ /// hands were off the keyboard for a few seconds would just hang for
+ /// exactly that long. Replaced with a bounded `poll(2)` on the
+ /// connection's own fd (`~16ms`, matching the Wayland backends' own
+ /// frame-ish cadence) so this method always returns roughly that often
+ /// regardless of X11 activity, draining whatever's actually arrived
+ /// (zero or more events) each time rather than requiring at least one.
fn poll_events(&mut self) -> PlatformResult<Vec<Event>> {
self.conn.flush().map_err(err)?;
let fd = self.conn.stream().as_raw_fd();