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

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

              Created:
              Updated:
              Resolved:
              CHK: