Closed Bug 1876269 Opened 1 year ago Closed 1 year ago

[X11/KDE] CSS `cursor:none` not working, fixed in KDE 5.27

Categories

(Core :: Widget: Gtk, defect, P3)

Firefox 123
x86_64
Linux
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: lampe2020, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0

Steps to reproduce:

I played a YouTube video in fullscreen in Firefox Developer Edition 123.0b1.
Then I played a video on my own website (Lampe2020.de).

Actual results:

The cursor jumped a few pixels to the right when YouTube hid its video UI and back to the left when YouTube unhid its UI.
Same behaviour on my own website, except that the cursor jumped diagonally instead of horizontally.

Expected results:

The cursor should have disappeared in both cases.

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core

This seems to be an issue with hiding the cursor in general, as it just gets stuck on whatever it was before hiding when mousing over any element with CSS cursor:none;.

Component: Audio/Video: Playback → CSS Parsing and Computation
OS: Unspecified → Linux
Hardware: Unspecified → x86_64

(In reply to BugBot [:suhaib / :marco/ :calixte] from comment #1)

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

This seems to be a problem with applying the CSS cursor:none; rule, as mousing over any element that has cursor:none; set shows the cursor that was set on the element the mouse came from. So when going from a link to said element the hand cursor is shown, going from a <div> for example to the same element with cursor:none; shows the normal arrow pointer.

On my own website I have now implemented a workaround, which is setting the cursor to a single transparent pixel if possible, using none only as a fallback. That works except for when the cursor isn't updated in fullscreen inside a diamond-shaped area whose corners are at each screen edge's mid-point, just like the previous solution (cursor:none) for Firefox Developer Edition <=122.0b9.

I just discovered that totem has the exact same bug but not Ungoogled Chromium, so it can't really be a KDE problem, I think. And because Ungoogled Chromium is (as far as I know) also built on Gtk it can't really be a Gtk bug either, except if it's on a version that newer Firefox and totem use but not Ungoogled Chromium.

Don't worry about the random string in the bottom right corner of the attached recording, it's an element in OBS for my YouTube videos which I forgot to hide before starting the recording.

Summary: mouse cursor not hiding in youtube → CSS `cursor:none` not working

This isn't only a problem in YouTube, this affects all websites, that's why I changed the title.

I'm not seeing this on macOS. It sounds more like a platform-integration issue than a CSS bug, I think; moving to Widget for investigation.

Component: CSS Parsing and Computation → Widget: Gtk

I just tested it on Fluxbox (X11) and the cursor hides just fine as it seems.
And I updated KDE Plasma from the official Ubuntu 22.04's 5.24 to the ubuntu backports' 5.27 (because I wanted to have the floating panel) and now the cursor hides fine again. So maybe it's a KWin-and-GTK-not-cooperating-properly problem.

Should I close this because using newer KDE (from a backports PPA) doesn't seem to cause the problem, or should I keep this open because normal Ubuntu 22.04 users will still experience this bug?

Les't close it if it's fixed in 5.27.

Blocks: gtk-kde
Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Priority: -- → P3
Resolution: --- → WORKSFORME
Summary: CSS `cursor:none` not working → [X11/KDE] CSS `cursor:none` not working, fixed in KDE 5.27
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: