From f974e179e9c2c385d243fb90887ae63774b2c1bf Mon Sep 17 00:00:00 2001 From: omartelo Date: Mon, 19 Oct 2026 11:59:25 -0300 Subject: [PATCH] fix(native): draw the desktop's cursor on Wayland Bumps lichdotdev/gio to c389a6eb. The window now sets its cursor through wp_cursor_shape_v1, so the compositor draws it in its own theme, size and scale; niri keeps the theme in its config and never handed it to lich through XCURSOR_THEME. Without the protocol, the window reloads its cursor theme when its scale changes, which stops the cursor jumping on entering the window from a monitor with a smaller scale than the largest one. --- CHANGELOG.md | 1 + native/go.mod | 2 +- native/go.sum | 6 ++---- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32a15877..c17d3b6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - `lich quit` no longer fails with "EOF" when lich quits before answering: it waits for the port to close instead of calling the lost reply a refusal. +- On Wayland, the native window shows the desktop's own cursor, in its theme and size, where it could show another theme. On a monitor with a smaller scale than the largest one, the cursor no longer jumps as it enters the window. ## [0.71.2] - 2026-10-19 diff --git a/native/go.mod b/native/go.mod index fd525c9b..41ec69ed 100644 --- a/native/go.mod +++ b/native/go.mod @@ -27,4 +27,4 @@ require ( // app.DropEvent (external file drop) and Window.Activate (raising the window on // Wayland) live in lichdotdev/gio, branch drop-event; gioui.org has neither. -replace gioui.org => github.com/lichdotdev/gio v0.0.0-20261015151446-c609b88c89a0 +replace gioui.org => github.com/lichdotdev/gio v0.0.0-20261019145824-c389a6eb0b04 diff --git a/native/go.sum b/native/go.sum index 49253ab2..b9364e4e 100644 --- a/native/go.sum +++ b/native/go.sum @@ -25,10 +25,8 @@ github.com/godbus/dbus/v5 v5.2.2 h1:TUR3TgtSVDmjiXOgAAyaZbYmIeP3DPkld3jgKGV8mXQ= github.com/godbus/dbus/v5 v5.2.2/go.mod h1:3AAv2+hPq5rdnr5txxxRwiGjPXamgoIHgz9FPBfOp3c= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= -github.com/lichdotdev/gio v0.0.0-20261015151446-c609b88c89a0 h1:0WfWaBTv58oF2piqfDmoJHpatVFH8f1rlekPUhFrF3w= -github.com/lichdotdev/gio v0.0.0-20261015151446-c609b88c89a0/go.mod h1:x8MAOooc/v4UUaB5o6BS/FpYdxnzh3LBvZlTBmYpnlQ= -github.com/lichdotdev/godemirror v0.7.0 h1:bTJh1WOzuoTgtMFvzSPyo/44upkTXAc0dwRTzeWyE/c= -github.com/lichdotdev/godemirror v0.7.0/go.mod h1:xCdFPbos7+4/bCymJIx7FnL4EpsuMpebRCbGM5Un4fg= +github.com/lichdotdev/gio v0.0.0-20261019145824-c389a6eb0b04 h1:1UC6Js6PJf2epT9C3iV2drtQeeaY7MWBHYPpkjmJyCY= +github.com/lichdotdev/gio v0.0.0-20261019145824-c389a6eb0b04/go.mod h1:x8MAOooc/v4UUaB5o6BS/FpYdxnzh3LBvZlTBmYpnlQ= github.com/lichdotdev/godemirror v0.7.1 h1:Y8KXCDhR7SleP8qOdZ6EwbHJ2Vk7I4Fq+wFcVY6Lso0= github.com/lichdotdev/godemirror v0.7.1/go.mod h1:xCdFPbos7+4/bCymJIx7FnL4EpsuMpebRCbGM5Un4fg= github.com/yuin/goldmark v1.4.13 h1:fVcFKWvrslecOb/tg+Cc05dkeYx540o0FuFt3nUVDoE=