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

Exiting fullscreen disables window resize

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 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
    • Windows 7 64 bit, Java 8 update 11
    • Confirmed

      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 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);
          }
      }
      

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

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

              Created:
              Updated:
              Resolved:
              CHK: