Pointer lock is broken on Wayland
-
Pointer lock, a tool used by many games, doesn't work correctly on Wayland on Vivaldi. You normally need to click escape to exit pointer lock used by such applications, but that doesn't work when you're using Wayland. Instead, on Wayland, your pointer isn't locked to the game/content area.
This works fine on Brave and Chromium using Wayland, so I don't think this is upstream.
A couple of games to test on:
classic.minecraft.net
https://hedgewizards.itch.io/pogo3dTested on latest stable rpm package and also using the snap package, and also tested using a new profile.
-
@Sordid Had you tested at https://mdn.github.io/dom-examples/pointer-lock/?
Hmm, on Ubuntu 22 Cinnamon Wayland 6.9.3447.51 (Deb package) the unlock with Esc works.
But pointer acts strange. Same on Chromium 129/130 and Chrome 131. Perhaps it is a VM issue.
-
Unlock with Esc works; this isn't the problem. The problem is that it isn't very much locked in Vivaldi on Wayland even when it says it is, and the mouse is able to exit the content area which provides issue. It's more clrear if you put the browser in windowed mode so that you're able to see when the cursor exits the browser window.
With Wayland in Chrome and Brave, and with Vivaldi on XWayland, I wasn't able to reproduce those issues. Okay, there's a minor issue where if there was a system pop-up. Like I'm on gnome, and if I want to make sure something is using Wayland, I bring up the inspector by pressing Alt+F2 and then running lg command. This produces results in those other browsers similar to Vivaldi, but it's okay, because if you press Esc and then lock in again by clicking inside the content area, you then have a functional mouse lock again.
-
@Sordid I am not able to test as my VM is having trouble with mouse.
Please report issue to Vivaldi bug tracker.
Describe very well about OS, Desktop Environment, Window server so a internal tester can check this.
Once that is done, share the bug number (beginning with VB-) you got by bug report mail.
Thanks for helping us making Vivaldi better. -
VB-110275