Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-253216

Can't look with mouse when holding any mouse button in certain systems

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19, 22w24a, 1.19.1 Pre-release 1, 1.19.1 Release Candidate 1, 1.19.1 Pre-release 2, 1.19.1 Pre-release 3, 1.19.1 Pre-release 4, 1.19.1 Pre-release 5, 1.19.1 Pre-release 6, 1.19.1 Release Candidate 2, 1.19.1 Release Candidate 3, 1.19.1, 1.19.2 Release Candidate 1, 1.19.2, 22w43a, 22w45a, 22w46a, 1.19.3 Pre-release 1, 1.19.3 Pre-release 3, 1.19.3 Release Candidate 1, 1.19.3 Release Candidate 3, 1.19.3
    • Distribution: Arch Linux
      Window manager: i3-gaps
      Java version: OpenJDK 18.0.1.1
    • Plausible
    • Input
    • Normal
    • Platform

      It seems like the game doesn't restore its window focus correctly since a 1.19 snapshot.

      When the game window loses focus and it's restored back, it becomes impossible to look around while holding any mouse button (left, middle or right). It can only be fixed by pausing and unpausing by pressing Escape.

      I play on Linux and I'm not sure if it affects other platforms as well.

      This issue was introduced in the 1.19 snapshot 22w16a. It doesn't exist in 22w15a and prior versions of Minecraft. Maybe it's due to the LWJGL update to 3.3.1, but it's just my wild guess.

      Steps to Reproduce:

      1. Enter a single-player world or join a server.
      2. Lose window focus by Alt-Tabbing or through some other method.
      3. Focus back on the game window.
      4. Now it depends if the game paused after losing focus or not. It doesn't do it consistently for me. But when it doesn't pause (for me it's the case most of the time):
      5. Hold any mouse button and try to look. You can't.

            Unassigned Unassigned
            thokr thokr
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: