I hope this helps, but I feel that this is not a good long term solution.
Correct, X11 tools don't necessarily work on Wayland systems which is where the world is going.
On the other hand, this may be resolved from within Geany.
This part cannot, see https://github.com/geany/geany/discussions/3538#discussioncomment-6648470