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

Exiting fullscreen disables window resize

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.8-pre1, Minecraft 1.8.1, Minecraft 1.8.2-pre6, Minecraft 1.8.2-pre7, Minecraft 1.8.2, Minecraft 1.8.3, Minecraft 1.8.4, Minecraft 1.8.5, Minecraft 1.8.6, Minecraft 1.8.7, Minecraft 1.8.8, Minecraft 15w31b, Minecraft 15w31c, Minecraft 15w32c, Minecraft 15w33b, Minecraft 15w33c, Minecraft 15w34a, Minecraft 15w34d, Minecraft 15w35b, Minecraft 15w35e, Minecraft 15w37a, Minecraft 15w38a, Minecraft 15w38b, Minecraft 15w39a, Minecraft 15w40a, Minecraft 15w41b, Minecraft 15w42a, Minecraft 15w43a, Minecraft 15w43c, Minecraft 15w44a, Minecraft 15w44b, Minecraft 15w45a, Minecraft 15w47a, Minecraft 15w47c, Minecraft 1.8.9, Minecraft 15w50a, Minecraft 15w51b, Minecraft 16w03a, Minecraft 16w04a, Minecraft 16w05b, Minecraft 16w06a, Minecraft 16w07a, Minecraft 1.9 Pre-Release 1, Minecraft 1.9 Pre-Release 2, Minecraft 1.9 Pre-Release 4, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.1, Minecraft 1.9.2, Minecraft 1.9.3 Pre-Release 1, Minecraft 1.9.4, Minecraft 16w20a, Minecraft 16w21a, Minecraft 16w21b, Minecraft 1.10 Pre-Release 1, Minecraft 1.10, Minecraft 1.10.1, Minecraft 1.10.2, Minecraft 16w33a, Minecraft 16w35a, Minecraft 16w38a, Minecraft 16w39a, Minecraft 16w39c, Minecraft 16w41a, Minecraft 16w42a, Minecraft 16w43a, Minecraft 16w44a, Minecraft 1.11, Minecraft 1.11.2, Minecraft 1.12 Pre-Release 1, Minecraft 1.12 Pre-Release 5, Minecraft 1.12
    • Environment:
      Windows 7 64 bit, Java 8 update 11
    • Confirmation Status:
      Confirmed

      Description

      When exiting fullscreen (with F11 or through video settings) you can't click maximize until you restart the game.
      This happens on Windows 7, but not on Ubuntu 16.4.

      Code analysis

      Outdated code analysis by [Mod] Marcono1234 is found here

      New code analysis:
      Based on MC-111254 the problem is indeed a LWJGL bug, now https://github.com/LWJGL/lwjgl/issues/142
      As a hacky workaround (as stated in MC-111254), the method net.minecraft.client.Minecraft.toggleFullscreen() could be temporarily changed to:

      /**
       * Toggles fullscreen mode.
       */
      public void toggleFullscreen()
      {
          try
          {
              //...
      
              Display.setFullscreen(this.fullscreen);
              // New temporary code
              if (!this.fullscreen) {
                  Display.setResizable(false);
                  Display.setResizable(true);
              }
              
              //...
          }
          catch (Exception exception)
          {
              LOGGER.error((String)"Couldn\'t toggle fullscreen", (Throwable)exception);
          }
      }
      

        Attachments

        1. 1.8.2-pre5 maximize bug.png
          1.26 MB
          gzurti
        2. 1.8.4 bug.PNG
          366 kB
          Eric Lawson
        3. 1.png
          287 kB
          Felipe2048
        4. 15w51b.png
          184 kB
          Gerhard Pillow
        5. 2015-01-28_17.34.01.png
          150 kB
          gzurti
        6. 2015-01-28_17.34.05.png
          263 kB
          gzurti
        7. 2015-01-28_17.34.12.png
          361 kB
          gzurti
        8. 2015-01-28_17.34.17.png
          380 kB
          gzurti
        9. 2015-01-28_17.34.22.png
          76 kB
          gzurti
        10. cant maximize.png
          301 kB
          ninosfl
        11. Capture.PNG
          1.07 MB
          Eric Lawson
        12. Forge_1.8.9.jpg
          791 kB
          Meri Diana
        13. maximize error windows 7 sp1 64 bit.png
          4.60 MB
          Eric Lawson
        14. MCPatcher_1.8.png
          563 kB
          Meri Diana
        15. mc-windowbug-bugged.png
          397 kB
          iamanai
        16. mc-windowbug-maximized.png
          1.05 MB
          iamanai
        17. mc-windowbug-normal.png
          405 kB
          iamanai
        18. minecraft182_size1.png
          1.89 MB
          bumoja frustrum
        19. minecraft182_size2.png
          1.87 MB
          bumoja frustrum
        20. minecraft182_size3.png
          1.78 MB
          bumoja frustrum
        21. minecraft182_size4.png
          1.44 MB
          bumoja frustrum
        22. minecraft182_size5afterfullscreen_arrows.png
          1.90 MB
          bumoja frustrum
        23. Untitled.png
          289 kB
          Demetrius Allen Petitt
        24. Untitled-1.png
          641 kB
            Tom  

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ninosfl ninosfl
              Votes:
              188 Vote for this issue
              Watchers:
              73 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                CHK: