mojira.dev
MC-95014

Death screen releases the mouse while the buttons are gray

The bug

The death screen disables the "Respawn" and "Title screen" buttons to avoid the player accidentally pressing them after dying, but it does not grab the mouse while the buttons are disabled.

Steps to Reproduce:

  1. Die

    /kill @p

Observed Results:

The player will die, the "You Died!" screen will show, and the mouse will immediately be free to move around.

Expected Results:

The mouse would be disabled for the brief moment that the "return to title screen" and "respawn" options are grayed out.

Notes:

When you are playing in windowed mode you can unintentionally close Minecraft because you were rotating your camera before you died, and your mouse ends up on the close window button.

Linked issues

Comments 7

Dupe of MC-2835
Already fixed for 1.9 🙂

Thank you FVbico and Marcono1234 🙂

Can confirm for MC 1.12.1.

Confirmed for 1.13.1.

Confirmed in 1.15.2 and 1.16 Release Candidate 1.

Can canfirm in 1.20.2/23w41a

Requesting ownership of this issue to maintain it as the original poster is inactive.

Not important

[Mod] Jingy

(Unassigned)

Confirmed

Input

button, death-screen, mouse, window, windowed

Minecraft 1.8.9, Minecraft 15w51b, Minecraft 17w06a, Minecraft 1.12, Minecraft 1.12.1, ..., 1.20.3 Pre-Release 4, 1.20.3, 1.20.4, 24w09a, 1.20.5

Retrieved