flxzt / rnote

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

Peninput is shifted by ca 1 box to the left and to the top (hyprland) #779

Open mitgitumgekippt opened 1 year ago

mitgitumgekippt commented 1 year ago

Describe the bug When I write with a pen on my touchscreen, the input is shifted up and left. The cursor-pointer is where it should be, but not the written point.

-> normal/expected behavior if a mouse is used -> normal/expected behavior on Xournal++

To Reproduce
Steps to reproduce the behavior:

  1. Start the application
  2. Write on the canvas with a pen

Expected behavior
I expected the pen output to be where the cursor is - so exactly where the pointer is.

Console Output
I don't have flatpak, so I can not give this output. But this is the output when I start the application in the console: Moritz@SurfaceArch ~> rnote

(rnote:3367): Gtk-CRITICAL **: 15:19:26.353: gtk_widget_class_set_accessible_role: assertion '!gtk_accessible_role_is_abstract (accessible_role)' failed

(rnote:3367): Gtk-WARNING **: 15:19:26.493: Creating a portal monitor failed: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Inhibit” on object at path /org/freedesktop/portal/desktop

Screenshots
The green point is the point where the pen/pointer touches, the black point is created by said touch. Screenshot from 2023-08-24 13-39-54

Desktop (please complete the following information):

Additional context
I am using wayland.

Kneemund commented 1 year ago

This seems to be the same issue as the one described in #685, which is a potential duplicate of #338. Can you reproduce the same problem when running the "Paint" demo in gtk4-demo (the package is called gtk4-demos in the Arch repositories)?

Also, what is your scaling factor set to? According to the other issues, either using 100% scaling or running the app in full screen are workarounds.

mitgitumgekippt commented 1 year ago

Hi, thanks for the fast answer and sorry that I have overseen these issues.

I can reproduce the problem in the gtk4-demo. The workaround does not work for me.

Probably you noticed it already, but in #685 both persons are describing the problem under arch+hyprland. #552 and #338 are under fedora+gnome. I just tried rnote in sway, and there it works without problems. So it seems (at least in my case) to be a problem in Hyprland.

nate-sys commented 11 months ago

Can confirm that the issue is with Hyprland.

PietHelzel commented 11 months ago

Also Hyprland, same issue. Switching to fullscreen fixes it.

AverageLinuxEnjoyer commented 7 months ago

I'm on Hyprland, NixOS and I encounter the same issue. Switching to fullscreen does indeed fix it.