xlibinput_calibrator icon indicating copy to clipboard operation
xlibinput_calibrator copied to clipboard

Make it work nicely with wayland

Open Atemu opened this issue 1 year ago • 6 comments

Running a calibration on wayland works and it gets applied but only half way. It prints WARNING: xinput is running against an Xwayland server. See the xinput man page for details. which is true; it's running against xwayland and that means calibration only applies to xwayland apps. Switch to a native wayland app and the stylus is no longer calibrated.

The issue is twofold:

  1. We need to use a sane, portable method to apply the transformation matrix at runtime for Wayland compositors. You probably need a protocol for this; perhaps something like that already exists.
  2. The app should suggest the user a means of permanently applying the matrix. Under X11, that's the xorg config files but under Wayland its...? Udev?

Atemu avatar May 06 '23 12:05 Atemu