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

Fullscreen state isn't saved

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.1, 1.20.2, 23w42a
    • None
    • Confirmed
    • UI
    • Normal
    • Platform

      When pressing F11 to toggle in and out of full-screen, it does not save options.txt, so upon the next launch of Minecraft the previous fullscreen state is restored, not the one that was set.

       

      Code analysis

      Mojang mappings 1.20.1 - KeyboardHandler.java

      if (this.minecraft.options.keyFullscreen.matches(key, scancode)) {
          this.minecraft.getWindow().toggleFullScreen();
          this.minecraft.options.fullscreen().set(this.minecraft.getWindow().isFullscreen());
          return;
      } 

      here we can see the code that toggles fullscreen doesn't trigger Options#save.

       

      I have implemented this fix inside my mod, Debugify, so people who find this particularly annoying can use my mod to fix this among other bugs as well.

            Unassigned Unassigned
            isXander Xander Smith
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              CHK: