| Summary: | cursor acts weird between QT/GTK if graphics tablet is connected | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | Alexander <alexander.reimelt> |
| Component: | input | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | aleixpol, nate |
| Priority: | NOR | Keywords: | wayland-only |
| Version First Reported In: | 5.21.0 | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/kwin/commit/0a1a4d362b7fcc3374730db639074056919300c9 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: | gtk3-demo --run=cursors | ||
|
Description
Alexander
2021-05-28 13:16:15 UTC
This would either be a bug in GTK itself, or in KWin's cursor handling. However I strongly suspect GTK itself. Please report it upstream first https://gitlab.gnome.org/GNOME/gtk/-/issues/. If they insist it's not their fault, we can re-investigate this here. Thanks! But what about the cursor disappearing on Qt applications? It is needed in order to be usable. Since you're on Wayland, there's a chance that KWin could be at fault here. let's see what the Gnome devs have to say: https://gitlab.gnome.org/GNOME/gtk/-/issues/3998 added a Video on the GTK issue Created attachment 138969 [details]
gtk3-demo --run=cursors
The Gnome developer suspects this is a Kwin bug because it isn't reproducible on his Gnome desktop. More info is in the GTK issue.
I made a new demo video with `gtk3-demo --run=cursors`.
After minimizing OBS I switched to the pen and the cursor disappeared on screen but is still visible in the recording for some reason. That's why I wiggle the cursor in the first seconds.
Also see how the task list preview stays open even after I started using the pen and disappeared with the notification? This is because kwin only hides the mouse cursor and doesn't sync to the pen cursor. The mouse still rests on the task list. The notification stole the focus from the preview and the same thing can happen to krunner. These are two other bugs just in the first seconds of the video.
With Plasma 5.22.0 I finally have a cursor (cross hair) on qt applications. The GTK experience hasn't changed. I can reproduce some weirdness, I'll have to take a look. A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/1142 Does this fix the look of the cursor or the desync between mouse and pen cursor? This will show the cursor as the client (GTK or otherwise) offers it. Git commit 0a1a4d362b7fcc3374730db639074056919300c9 by Aleix Pol Gonzalez, on behalf of Aleix Pol. Committed on 05/07/2021 at 13:23. Pushed by apol into branch 'master'. tablet: Update the cursor as the surface changes The tablet protocol offers us the cursor in a surface. This patch makes sure we connect to the surface so that we can also refresh the representation if the client submits a change. M +41 -11 src/input.cpp https://invent.kde.org/plasma/kwin/commit/0a1a4d362b7fcc3374730db639074056919300c9 |