Bug 436002 - Cursor changes to default X cursor when opening context menu in GTK 2/3/4 apps
Summary: Cursor changes to default X cursor when opening context menu in GTK 2/3/4 apps
Status: RESOLVED DOWNSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_cursortheme (other bugs)
Version First Reported In: 5.21.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-21 14:18 UTC by equeim
Modified: 2021-05-03 15:44 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
dconf-editor after opening context menu (293.45 KB, image/png)
2021-04-21 14:18 UTC, equeim
Details
dconf-editor (193.19 KB, image/png)
2021-04-21 22:18 UTC, equeim
Details
Cursor over taskbar tooltips (18.28 KB, image/png)
2021-04-30 20:54 UTC, equeim
Details

Note You need to log in before you can comment on or make changes to this bug.
Description equeim 2021-04-21 14:18:00 UTC
Created attachment 137763 [details]
dconf-editor after opening context menu

SUMMARY
When opening context menus in GTK 2/3/4 apps, cursor changes to default X cursor (from default Xorg theme, not current cursor theme)

STEPS TO REPRODUCE
1. Open GTK+ 2/3/4 app
2. Open context menu

OBSERVED RESULT
Cursor changes to X cursor

EXPECTED RESULT
Cursor stays the same

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 34
KDE Plasma Version: 5.21.3
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-04-21 22:12:14 UTC
Hmm, your screenshot does not appear to show the cursor, so I can't tell what the problem is. :) Can you re-take it and include the cursor?
Comment 2 equeim 2021-04-21 22:18:03 UTC
Created attachment 137774 [details]
dconf-editor
Comment 3 Nate Graham 2021-04-21 22:36:14 UTC
Does it start working if you restart kwin (kwin_x11 --replace)?
Comment 4 equeim 2021-04-22 13:40:31 UTC
No, it still shows X cursor.
Comment 5 Nate Graham 2021-04-22 18:01:18 UTC
Thanks, that means KWin isn't at fault here. So it could be the apps fault, or it could be our fault for not setting some setting that they consume correctly. More likely that.
Comment 6 equeim 2021-04-30 20:53:06 UTC
I don't think so, today I also noticed that this cursor also appears over parts Plasma task manager thumbnail tooltips (over empty space or text, not thumbnails themselves). I have no idea how I missed this before.

This is probably some weird Fedora 34 issue (and there is at least one other Fedora user that has this too that commented on my bug report there) although for some reason I have a feeling that it will get any response there.
Comment 7 equeim 2021-04-30 20:54:02 UTC
Created attachment 138039 [details]
Cursor over taskbar tooltips
Comment 8 equeim 2021-04-30 20:55:18 UTC
It also shows over other tooltips that belong to taskbar plasmoid (like tooltip of pinned apps) but other plasmoids are not affected.
Comment 9 equeim 2021-05-01 13:44:40 UTC
I fixed this by installing xsetroot package (that was automatically removed because of splitting of X11 tools in separate packages in F34). It seems that startkde needs it to set cursor on root window.

https://bugzilla.redhat.com/show_bug.cgi?id=1950795#c4
Comment 10 Nate Graham 2021-05-03 15:44:31 UTC
Thanks for following up!