flxzt / rnote

Sketch and take handwritten notes.
https://rnote.flxzt.net
GNU General Public License v3.0
8.14k stars 280 forks source link

rnote experiences cursor desync at 200% scaling in wayland #338

Open potatoes1286 opened 1 year ago

potatoes1286 commented 1 year ago

Describe the bug When scaling is set to 200%, the cursor is offset from where the mouse actually is.

To Reproduce Steps to reproduce the behavior:

  1. Enable Wayland
  2. Set screen(s) to 200% scaling
  3. Open rnote and attempt to draw or use other tools
  4. The cursor is visibly offset from where the drawing begins

Expected behavior The cursor will line up to where the drawing begins

Console Output Run with flatpak run com.github.flxzt.rnote and post the output here There is no output.

Screenshots Untitled Shown using the shaper tool. The cursor appears to be on the blue dot highlighted (does not show due to screenshot not capturing cursor) however it begins drawing at the red dot. Selecting "show cursor" in GNOME's screenshot tool shows it appearing on top of the red dot, so it appears that rnote is incorrectly placing the cursor in the wrong position. IMG_20221107_221731 The same situation, taken using my phone instead of the screenshot tool. Here you can clearly see the cursor desync.

Desktop (please complete the following information):

Additional context This behaviour does not happen on X11. I have reproduced this on two machines; my desktop and my laptop. Both run the same desktop ecosystem (Fedora 37, Flatpak, GNOME 43)

SrEstegosaurio commented 1 year ago

I encountered the exact same problem on a different setup. But after running two different versions of the program I encountered something: If running v0.5.7 everythings works fine. Problems arise when switching to the more up to date version v0.6.0.

The issue happens both in the Flatpak and normal package version. All cases tested on Hyprland with both wacom and opentabletdriver.

Set screen(s) to 200% scaling

This affects me no matter that. ^

robfuscator commented 5 months ago

Affected es well on up-to-date Debian stable using the up-to-date stable flatpak version (0.10.2). Happy to investigate, but I'd need some guidance.

mags0ft commented 1 month ago

Can confirm that this bug persists on Ubuntu 22.04 on Wayland at 200% scaling when using the mouse, but not when using an external pen or touchscreen.

mags0ft commented 1 month ago

I was able to circumvent this issue by using fractional scaling and 200%, however this is only viable as a temporary workaround.