Hi everyone,
I’m currently trying to solve an issue with my Wacom CTH-470 tablet on Fedora 42 using Wayland. Specifically, when I use the pen, the cursor disappears and doesn’t come back when I lift the stylus off the tablet surface. I’ve been troubleshooting this issue by following this GTK issue thread (#6312), and I eventually found Merge Request 7909, which seems to propose a fix.
From what I understand, the problem seems related to the cursor hiding logic not updating properly with stylus movement events. The patch modifies gtk_text_view_unobscure_mouse_cursor()
to skip or adjust a timestamp check that might be preventing the cursor from reappearing.
The issue appeared after I switched from OpenTabletDriver back to Fedora’s default drivers, and forced the system to use the Xorg Wacom driver instead of the libinput one, since it seems to be more up-to-date and provides better options in the graphical settings panel
The issue seems to be linked to AMD GPUs using Mesa under Wayland. Mesa already gave me some headaches back on Fedora 40. When I first tried using Wayland, I ran into several issues—likely related to Mesa—so I switched to Xorg, and everything worked fine. But now that Wayland is the only supported option on Fedora 42, I don’t have another option than trying to fix the current bug. Anyways, things seem to have improved a lot, and Mesa no longer causes the problems it used to. I really appreciate the amazing work from everyone involved in fixing these kinds of bugs—I hope one day I can give back to the community that’s made such a stable and polished distro. Honestly, I’d already have thrown Windows in the trash if it weren’t for the fact that I’m still learning After Effects there. Unfortunately, this new cursor bug with the tablet stylus has popped up, just when everything else was running smoothly. I really wish I could just swap out my AMD GPU to avoid these random Mesa-related issues altogether
The thing is… I’m pretty new to this and I have no idea how to test a GTK patch locally on Fedora without messing up my system. I’ve already cloned the GTK repository, but I got stuck on what to do next, I’m not sure what the right way is to apply or build a patch from a GitLab MR.
So here are my questions:
- How do I apply a patch from a GitLab Merge Request like this (MR 7909)?
- What’s the best way to build and test it locally?
- Is there a recommended way to test GTK changes on Fedora specifically, or a safer workflow I should follow?
Any help or guidance would be hugely appreciated. Thanks in advance!