Score:12

Mouse hover events broken on Firefox

us flag

I have an issue, which I saw only on Firefox : after some time (or some event which I haven't identified yet), Firefox does not react to my mouse movement events

meaning :

  • when hovering over an HTML item, it does not highlight/change appearance even if it is supposed to do so,
  • when hovering over a clickable item, the cursor does not change,
  • when hovering over selectable text, the cursor does not change,
  • tooltips do not appear,
  • etc ...

if I trigger other GUI events (if I click, or if I press a keyboard key), then the GUI reacts (cursor changes, tooltips appear, animations get triggered ...), a bit as if, by handling that other event, firefox realized "oh, the cursor is actually there", but with no external event, my mousenter/mouseleave events seem to be ignored, or stalled.

Running Ubuntu 22.10 (kinetic), and regular firefox snap install (my current version: 108.0.1).

Does anyone have a similar issue ?


[edit] I opened an issue on launchpad, if any of you care to bring more details to it:

https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/2006468

vg flag
Annoys me for a few weeks already, using the binary package (not snap) on 22.04, happens since updating to 108.0. Did not find any other post mentioning it last time I searched and thought it was a my-computer issue, now it looks like an our-computers issue …
vg flag
Not sure if related, I have DisplayLink drivers installed.
L3viathan avatar
ch flag
Same issue. When I switched from Wayland to Xorg it went away..
LeGEC avatar
us flag
@L3viathan: did you switch back to Xorg even on 22.10 ? I have several colleagues running firefox on Ubuntu 22.10 and they don't have this issue.
L3viathan avatar
ch flag
@LeGEC I'm actually on 22.04 LTS, but other than that it's the exact same issue.
aeno avatar
ph flag
I have the exact same symptoms running Firefox 109 on Arch Linux under Wayland. So it's definitely not Ubuntu-related.
vg flag
Did 112.0(.2) fix it? I have not had the problem for quite some time now.
vg flag
… nope. Just got too used to it. Still in 112.0.2
LeGEC avatar
us flag
@SimonA.Eugster: meh ... sorry to hear that. Did you try the `MOZ_ENABLE_WAYLAND=1` suggest in the answer ? I hadn't returned to this question, but it works for me.
vg flag
@LeGEC Yes, did not change anything, but I'm not sure if the variable is applied correctly when I start Firefox, I'm using a shortcut from the desktop environment. I'll test again with Firefox started from command line.
Score:7
km flag

This issue is also discussed in Firefox mouseover errors after upgrade to Ubuntu 22.04

My suggested solution is the following:

There's a bugticket for Firefox (Bugticket). If you force Firefox to use Wayland by adding MOZ_ENABLE_WAYLAND=1 to ~/.profile hover should work as expected.

Green Joffer avatar
no flag
tryed and that did not work for me, ff112, ubuntu22.04
LeGEC avatar
us flag
after adding : `export MOZ_ENABLE_WAYLAND=1` to my `~/.profile` my problem disappeared. So this is (in my experience) a valid workaround.
Score:1
au flag

The only way that worked reliably for me was to add it to the desktop launcher. Exporting it globally didn't seem to work.

Copy the desktop shortcut to ~/.local/share/applications/firefox.desktop

Then edit it and add "env MOZ_ENABLE_WAYLAND=1" in all the Exec= lines. Example:

Exec=firefox %u

becomes

Exec=env MOZ_ENABLE_WAYLAND=1 firefox %u

To verify that it worked, look for Window Protocol in about:support. It must say wayland. If it says xwayland, then you missed a step.

A note from past experience: if Firefox is pinned to your dashboard you have to un-pin it, restart it and pin it back in order to pick up the changes.

Sources:

LeGEC avatar
us flag
+1 for the detailed explanations. In my setup however, adding `export MOZ_ENABLE_WAYLAND=1` to my `~/.profile` worked.
Emilio avatar
au flag
Thanks! I'm on fedora, so it is was probably different. I can see the variable set when starting a new shell, but it does not change the "Window Protocol" in about:support. I was only able to get it right after editing the .desktop file.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.