Handy icon indicating copy to clipboard operation
Handy copied to clipboard

feat: Enable enigo wayland feature

Open lhotari opened this issue 1 month ago • 1 comments

Motivation

Currently Handy cannot be used in Wayland compositors

Changes

Enable enigo's wayland feature.

Tested with PopOS 24.04 Cosmic

This makes Handy usable on at least PopOS 24.04 Cosmic with paste method "Clipboard (CTRL+V)". image

To enable the global hot key in Cosmic it's necessary to change X11 compatibility settings and set the "Global shortcuts in X11 applications" value to "All keys".

image

lhotari avatar Nov 09 '25 14:11 lhotari

Another PR had this feature enabled and was ultimately reverted

I do suspect we may need to disable the wayland feature. I see an issue on the repo where there is double input if multiple methods are available.

The repo I mention here is the enigo repo, and I think double input is not a good thing.

cjpais avatar Nov 09 '25 23:11 cjpais

The repo I mention here is the enigo repo, and I think double input is not a good thing.

thanks. Found the issue enigo-rs/enigo#464.

Looking forward to progress on #265 with the wtype integration.

lhotari avatar Nov 10 '25 08:11 lhotari

@lhotari if you get a chance would you mind trying that PR? I don't have a Linux machine at the moment so it's gonna take me a bit to get this in unless I can get some confirmation from folks that this does help

I almost might extract the wtype bit out specifically if it does help. Then add the dbus support separately

cjpais avatar Nov 10 '25 11:11 cjpais

@lhotari if you get a chance would you mind trying that PR? I don't have a Linux machine at the moment so it's gonna take me a bit to get this in unless I can get some confirmation from folks that this does help

I almost might extract the wtype bit out specifically if it does help. Then add the dbus support separately

@cjpais The wtype parts work for me, as long as there's no overlay (since the original window loses focus because of the overlay). I made a PR #372 with the wtype parts extracted from #265.

lhotari avatar Nov 22 '25 21:11 lhotari