mojira.dev
MC-266211

Mouse gets stuck on click after Alt+Tab on Ubuntu machines

Whats the effect


After the procedure outlined in How to replicate?, you wont be able to do turn your head when holding mouse buttons.

How to replicate?


# Boot latest ubuntu version.

  1. Download minecraft.

  2. Open minecraft.

  3. Join into world/server.

  4. ALT + TAB into an another window.

  5. ALT + TAB back into minecraft.

  6. Hold M1 and try to turn arround (you wont be able to).

Environment

OS: Ubuntu 23.04 x86_64 
Kernel: 6.2.0-35-generic 
Packages: 3041 (dpkg), 13 (snap) 
Shell: bash 5.2.15 
Resolution: 1920x1080 
DE: GNOME 44.3 
WM: Mutter 
WM Theme: Adwaita 
Theme: Yaru-olive-dark [GTK2/3] 
Icons: Yaru-olive [GTK2/3] 
Terminal: gnome-terminal 
CPU: AMD Ryzen 5 5600 (12) @ 3.500GH 
GPU: NVIDIA GeForce GTX 1660 SUPER 
Memory: 5045MiB / 31992MiB 

Using bundled jdk runtime.

My jdk runtime:
openjdk 17.0.8.1 2023-08-24
OpenJDK Runtime Environment (build 17.0.8.1+1-Ubuntu-0ubuntu123.04)
OpenJDK 64-Bit Server VM (build 17.0.8.1+1-Ubuntu-0ubuntu123.04, mixed mode, sharing)

Linked issues

Attachments

Comments 7

I am not able to confirm this issue, since I am on Windows, but a video of you experiecing the issue would be very helpful in investigating this. Could you please provide one?

https://youtu.be/tYMeevBMHco

Here it is, now that i think about it it doesnt show much, but hey the best i can do to prove that this actualy exists. Although in 1.20.4 now the mouse only gets stuck when you alt tab out and alt tab back.

Can confirm in 1.21 pre-release 1.

Steps to reproduce:

  • Open Minecraft.

  • Switch to any other window.

  • Hold left click.

  • Switch back to the Minecraft using alt+tab.

  • Press esc and try to move.

  • Notice that while you can still move with WASD, you can't rotate the camera.

Does this work in a virtual machine (e.g. Ubuntu on VMware) on a Windows machine?

I don't know, quite possibly it will.

Thank you for your report!
After consideration, the issue is being closed as Won't Fix.

Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behavior, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

migrated

(Unassigned)

Community Consensus

Input

1.20.2, 1.20.4, 1.21 Pre-Release 1

Retrieved