Bug 482863 - invisible cursor
Summary: invisible cursor
Status: REOPENED
Alias: None
Product: plasma-mobile
Classification: Plasma
Component: Shell (show other bugs)
Version: unspecified
Platform: postmarketOS Linux
: NOR normal
Target Milestone: ---
Assignee: Devin Lin
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-08 12:18 UTC by Julian Groß
Modified: 2024-04-03 20:57 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julian Groß 2024-03-08 12:18:07 UTC
SUMMARY
Upgrading from Plasma Mobile 5 to 6 makes the cursor invisible on touchpad devices.

OBSERVED RESULT
The cursor is always invisible, even when using the touchpad.

EXPECTED RESULT
The cursor should appear when using the touchpad, as it did in Plasma Mobile 5.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: postmarketOS Edge (updated 2024-03-08)
(available in About System)
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Keep in mind that the cursor is only invisible. You can still hover over things and interact with them.
Comment 1 Julian Groß 2024-03-08 12:28:44 UTC
I just noticed that the cursor appears fine on top of GTK windows. It disappears as soon as it leaves Firefox, Gimp, Xournal++, or presumably any other GTK application.
Comment 2 Devin Lin 2024-03-09 15:37:56 UTC
Observed on alpine.

After asking KWin folks, it seems it gets fixed with these workarounds:
- Setting the env QT_WAYLAND_DISABLED_INTERFACES=wp_cursor_shape_manager_v1 for the entire session
- Going into the cursors kcm (kcmshell6 kcm_cursortheme) and then change the cursor theme, and back to breeze 

I'm not sure why the theme isn't working by default on pmOS though
Comment 3 Devin Lin 2024-03-09 15:53:41 UTC
Weird, it seems that the "dark" cursor theme doesn't exist, wonder if it has something to do with alpine building with -DCMAKE_BUILD_TYPE=MinSizeRel

https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/community/breeze/APKBUILD
Comment 4 Bug Janitor Service 2024-03-09 21:32:50 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-mobile/-/merge_requests/473
Comment 5 Devin Lin 2024-03-09 22:14:40 UTC
Git commit e5aa1854f3405a3200610ac67fef246b1905e09b by Devin Lin.
Committed on 09/03/2024 at 21:36.
Pushed by devinlin into branch 'Plasma/6.0'.

lookandfeel: Sync with breeze, fix default cursor theme
Not having a cursor theme set seems to cause the cursor to not show up at all

M  +20   -6    lookandfeel/contents/defaults

https://invent.kde.org/plasma/plasma-mobile/-/commit/e5aa1854f3405a3200610ac67fef246b1905e09b
Comment 6 Devin Lin 2024-03-09 22:16:11 UTC
Git commit 6fbb2f0dfcae3ca9045a8cbce14709851608eb41 by Devin Lin.
Committed on 09/03/2024 at 21:25.
Pushed by devinlin into branch 'master'.

lookandfeel: Sync with breeze, fix default cursor theme
Not having a cursor theme set seems to cause the cursor to not show up at all

M  +20   -6    lookandfeel/contents/defaults

https://invent.kde.org/plasma/plasma-mobile/-/commit/6fbb2f0dfcae3ca9045a8cbce14709851608eb41
Comment 7 Devin Lin 2024-03-09 23:04:16 UTC
Likely should be fixed for 6.0.2, will only close once confirmed
Comment 8 Julian Groß 2024-03-14 19:44:28 UTC
(In reply to Devin Lin from comment #7)
> Likely should be fixed for 6.0.2, will only close once confirmed

I needed to change the cursor theme via the desktop Plasma settings and change it back for the cursor to appear.
Maybe the update just broke the configuration?
I might not have tried changing the theme before, because the apply button was obstructed by the bottom panel.

Please reopen the issue if you feel that this is appropriate.
Comment 9 Devin Lin 2024-03-14 22:02:42 UTC
The plasma-mobile lookandfeel didn't specify a cursor theme in Plasma 6.0.0, it now does in Plasma 6.0.2
Comment 10 Julian Groß 2024-04-03 15:24:00 UTC
I just updated to Plasma Mobile 6.0.3 with KDE-Frameworks 6.0.0 and Qt 6.6.3 and the cursor issue reappeared.

Looking at the desktop settings cursor theme suggests that the dark Breeze theme cannot be applied. As in, I only get a cursor if I select another theme, or select another theme and then switch back to dark Breeze, which will keep the previous theme's cursor.
According to your comment https://bugs.kde.org/show_bug.cgi?id=482863#c3 dark Breeze is just missing on postmarketOS.

This means that the issue most likely never actually got fixed and was just worked around temporarily by switching cursor themes.
I will reopen this issue for now; Please tell me if I should rather move it to the postmarketOS or Alpine Linux issue tracker.
Comment 11 Devin Lin 2024-04-03 19:13:53 UTC
(In reply to Julian Groß from comment #10)
> I just updated to Plasma Mobile 6.0.3 with KDE-Frameworks 6.0.0 and Qt 6.6.3
> and the cursor issue reappeared.
> 
> Looking at the desktop settings cursor theme suggests that the dark Breeze
> theme cannot be applied. As in, I only get a cursor if I select another
> theme, or select another theme and then switch back to dark Breeze, which
> will keep the previous theme's cursor.
> According to your comment https://bugs.kde.org/show_bug.cgi?id=482863#c3
> dark Breeze is just missing on postmarketOS.
> 
> This means that the issue most likely never actually got fixed and was just
> worked around temporarily by switching cursor themes.
> I will reopen this issue for now; Please tell me if I should rather move it
> to the postmarketOS or Alpine Linux issue tracker.

Is this specific to when you have the Breeze Dark theme installed? From a fresh install I don't see the issue with the light theme, but needs further investigation
Comment 12 Julian Groß 2024-04-03 20:57:02 UTC
(In reply to Devin Lin from comment #11)
> Is this specific to when you have the Breeze Dark theme installed?

I am convinced that it only happens with Breeze Dark. However, I haven't specifically installed it. At least I am very sure that it came with the default installation.