Mouse pointer clicks at wrong location on some apps

Installed GOG Galaxy using Wine 9 (from WineHQ), now I find that mouse clicks are being registered away from where I’m pointing. For example if I mouseover a button and click, nothing happens but if I move the mouse pointer slightly below or to the side, only then does it register the click.

Also seen this in the native Linux installation of a game, Wasteland 2 so probably not Wine related. The mouse can’t click on the game’s menu items unless it is a couple of inches away from the actual item.

Hi - a few questions to hopefully help narrow down what might be going on:

  • Do you see the same issue occur in any other applications, or just in Wine and that particular game?
  • Are you using any screen scaling (in Display settings)?
  • Does the same issue occur in both Wayland and X11 sessions?

On Wine, I’ve seen it happen in Vortex (a mod manager for games by the folks at NexusMods) in addition to GOG Galaxy. What’s common to both of these programs is they follow the new fashion of ignoring all desktop conventions and making an app look like the website it’s from (I’m guessing they are Electron based, with a local Chrome instance for rendering).
Actual legacy Windows apps like Winamp run perfectly fine.

As for games, so far the one I mentioned is the only one with a problem and it is built with Unity if that helps.

Screen scaling is turned on, set to 150% while the resolution is at the maximum, 2560x1600 @ 165 Hz.

I have only ever used Wayland, never had to run in X11 or faced any issues with older desktop applications that might be using it.

Hmm, this feels like it’s possibly one of the topics covered under the metabug at 459161 – Metabug: Inconsistent cursor size on Wayland - are you able to test those applications while (temporarily, of course) using an X11 session, and then also with 100% scaling, just to see if those are contributing factors?

It may very well be a downstream issue with Electron and/or Unity, but even in that case, knowing what circumstances can cause it to occur can help with diagnosis wherever the fix ends up needing to be done :slight_smile: