ipe icon indicating copy to clipboard operation
ipe copied to clipboard

Pen tablet not showing mouse

Open DaGeggo opened this issue 1 year ago • 4 comments

I'm currently using Ipe 7.2.28 on a Fedora 40 machine. I have a Wacom Intuos pen tablet, which itself has no display, but can be used to draw on the laptop display.

It actually works with ipe, so I can draw, select, etc., just everything you can do with a mouse. The only problem is that the mouse is not showing on the display. In select mode there is this additional "cross" mark, which can be seen, in Ink mode, there is just nothing. Additionally, it vanishes when leaving the canvas to select properties/etc.

https://github.com/user-attachments/assets/d9caa831-7b88-47b4-9c8a-311fc8407ebf

On other common applications, I can see the mouse when hovering.

The most basic fix would be to just show the mouse as usual. Ideally, the mouse could be hidden on the canvas, at least when in Ink mode and instead a small dot/some other cursor could be shown (maybe editable?).

PS: I'm a huge fan of ipe, thank you very much for your time!

DaGeggo avatar Oct 07 '24 08:10 DaGeggo

Can you first verify if this is simply a problem with Qt 6 and your specific tablet? It's quite possible that your "other common applications" use GTK, not Qt 6, for their UI.

Ipe should not be making any changes to how the cursor is shown on the tool buttons.

otfried avatar Oct 07 '24 09:10 otfried

It seems to work on other Qt applications. A quick google search for Qt applications, I tested two:

  • MrWriter, another note-taking application, which is implemented in Qt
  • Minitibe, some arbitrary small application I found online, reportedly using Qt 6.

Both work nicely and show the cursor. I also did a Google search for problems with Qt and the Wacom tablet, and couldn't find anything that seemed important.

If there is something else to test, let me know.

DaGeggo avatar Oct 07 '24 10:10 DaGeggo

I have not tried it on a Huion tablet, and everything works normally. I do not know what might cause your problem.

If you can compile Ipe yourself, you could try to comment out the code in the function Canvas::setCursor in src/ipecanvas/ipecanvas_qt.cpp and see if this changes anything.

otfried avatar Oct 07 '24 20:10 otfried

I compiled it myself, with the part commented out, but it did not change anything. But I could nail down the problem a little more, it seems to be related to the monitor mapping:

I use multiple monitors and when I do not use a tablet mapping to either of those, so that I can draw over three displays with the tablet (very unhandy), the mouse is shown normally in ipe. When I use a mapping to a single monitor and/or the “Keep aspect ratio” option, the mouse disappears on the ipe window (see the options in the screenshot, this setting works). Does this help?

image

DaGeggo avatar Oct 09 '24 07:10 DaGeggo