You are not logged in.

#1 2025-09-10 20:39:59

sprkltts
Member
Registered: 2025-05-19
Posts: 5

Mouse stops working for Electron apps

Hello,

I'm not sure where to even start with this one. I have multiple Electron apps that stop responding to mouse clicks. I am using a Lenovo Yoga 7i which has a touchscreen, and the touchscreen works fine, so there's a workaround, but it would be nice to have Electron apps working again.

GNOME desktop and Wayland.

Can anyone point me in the right direction to troubleshoot? Or: does anyone else know what's going on?

Offline

#2 2025-09-10 22:37:31

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,162

Re: Mouse stops working for Electron apps

Are  those "electron" clients https://wiki.archlinux.org/title/Waylan … plications ?
=> Does using native wayland clients side-step the problem?
https://wiki.archlinux.org/title/Chromi … er_Wayland

Offline

#3 2025-09-10 23:33:17

sprkltts
Member
Registered: 2025-05-19
Posts: 5

Re: Mouse stops working for Electron apps

I'm hoping I got this right...

Using extramaus, they appear to be using XWayland. The clients in question are Discord, Joplin, Oracle Virtualbox, and Signal.

I've tried setting the env variable ELECTRON_OZONE_PLATFORM_HINT to both wayland and auto, as well as created an electron-flags.conf file:

--enable-features=WaylandWindowDecorations
--enable-features=WebRTCPipeWireCapturer
--ozone-platform-hint=auto

To make sure it would be read, I also created electronXX-flags.conf files for the versions installed.

It looks like it was falling back to X11 cursors before I set WaylandWindowDecorations flag. I know Discord ignores the ./config/electron-flags.conf but I'm not sure about the others.

Launching discord with -enable-features=UseOzonePlatform,WaylandWindowDecorations from the command line resolved the issue with Discord.

Also, Chromium and Electron 37 are working fine.

So, it looks like the issue is that it's falling back on XWayland on apps. Setting the flags doesn't help.

BUT: it seems to have something to do with the stylus input. When I tapped on something with the stylus, it all started working again with the regular mouse. So, something about Xwayland, touchscreen, and stylus?

I'm willing to mark this as [SOLVED] since tapping on the screen with the stylus fixes it, but I am baffled by whatever is causing the root issue.

Offline

#4 2025-09-11 07:29:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,162

Re: Mouse stops working for Electron apps

"--ozone-platform=wayland"
Do you have an overall problem w/ X11 (try an openbox session or so) or xwayland at large (eg. on weston) or is it specific to the xwayland handling on gnome?

Offline

Board footer

Powered by FluxBB