From 4a785a8d46bfb3fdf4771298dee8d94dac47b6f7 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Thu, 8 Oct 2026 21:02:50 +0200 Subject: [PATCH] docs: correct Wayland warp attribution to eaburns's devdraw/acme The pointer-constraints warp technique follows eaburns's Wayland implementation of devdraw/acme (github.com/eaburns/plan9port, wayland branch), not plan9port proper. Fix the attribution in both the README radial section and the waylandcursorwarp.h header comment, and link the source. --- README.md | 4 ++-- src/radial/waylandcursorwarp.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2111c7f..7002861 100644 --- a/README.md +++ b/README.md @@ -216,8 +216,8 @@ through a list. or focus-move), the pointer is warped to the centre of the new pane so the mouse stays where your attention is — the same cursor-follows-focus feel as acme. On X11 this is a direct `QCursor::setPos`; on Wayland (which forbids - that) it uses the pointer-constraints protocol, matching how plan9port warps - the cursor there. + that) it uses the pointer-constraints protocol, following + [eaburns's Wayland devdraw/acme](https://github.com/eaburns/plan9port/tree/wayland). - **Configure:** drop a `radials.json` at `~/.config/deft/radials.json` to replace the built-in tree; when it is absent, empty, or invalid, the built-in default is used. See [docs/radials.example.json](docs/radials.example.json) diff --git a/src/radial/waylandcursorwarp.h b/src/radial/waylandcursorwarp.h index c345f42..9d55a5a 100644 --- a/src/radial/waylandcursorwarp.h +++ b/src/radial/waylandcursorwarp.h @@ -9,7 +9,8 @@ * sanctioned way to reposition the cursor is zwp_pointer_constraints_v1: lock * the pointer to the surface it is already over, set a surface-local position * hint, then release the lock — the compositor warps the pointer to the hint on - * unlock (this is exactly how plan9port/acme moves the cursor on Wayland). + * unlock (this is how eaburns's Wayland implementation of devdraw/acme moves + * the cursor: https://github.com/eaburns/plan9port/tree/wayland). * * Kate's split panes are child widgets of a single top-level window, i.e. one * wl_surface, so moving the pointer between panes is a warp *within* that