15

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

LeGEC
  • 749

2 Answers2

7

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.

aprilunge
  • 126
2

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:

Emilio
  • 361