Stop Minimizing on Focus Loss
ModPrevents Minecraft fullscreen windows from minimizing when focus is lost.
Type
Mod
Modrinth Downloads
102
Modrinth ID
Brn4WjBD
Last Updated
Jun 16, 2026
Description
Stop Minimizing on Focus Loss keeps Minecraft from minimizing itself when you alt-tab, click another monitor, or otherwise move focus away from the game while using native fullscreen.
It is a tiny client-side utility mod. Install the jar that matches your Minecraft version and loader, and the fullscreen window should stay open when focus changes.
What it does:
- Prevents native fullscreen Minecraft windows from auto-minimizing on focus loss.
- Works at the window-system level used by Minecraft's LWJGL/GLFW backend.
- Reapplies the fix when Minecraft creates the window and when fullscreen mode changes.
What it does not do:
- It does not force Minecraft to stay focused.
- It does not disable pause-on-lost-focus behavior.
- It does not change borderless fullscreen, normal windowed mode, or operating-system window-manager policies.
- It does not restore a window that has already been minimized by something else.
Minecraft version and mod loader support
On Fabric and Quilt, this mod aims to actively support all Minecraft versions starting from 1.14 to the newest release. Also, the Quilt builds are dedicated ports DIFFERENT from the Fabric .jars.
On Forge versions 1.16.5, 1.17.x, 1.18.x, 1.19.x, 1.20.1, and 1.20.6 are supported. Meanwhile on NeoForge, this mod aims to support versions 1.20.1, 1.20.6, and all other versions starting from 1.21 to the newest release.
On Liteloader versions 1.7.10 and 1.8.9 are supported. Internally these ports work slightly differently due to these Minecraft versions using the LWJGL2 software library instead of LWJGL3 / GLFW. For this reason, and due to limitations of LWJGL2 on MacOS, the mod does not do anything when ran on said OS but works normally on both Linux, Windows, and likely most if not all modern *BSDs.
Lastly, a dedicated Better Than Adventure version is also supported:) BTA being a huge overhaul mod for Minecraft Beta 1.7.3b that uses a modified version of the Babric mod loader for its mod support.
The mod has zero dependencies:) Even the Fabric version does NOT use FabricAPI hence no other mods / libraries need to be installed for Stop Minimizing on Focus Loss to work.
Technical details:
Minecraft's modern fullscreen window is backed by the GLFW software library. GLFW has a GLFW_AUTO_ICONIFY window attribute which, by default, can minimize a native fullscreen window when it loses focus. This mod sets that attribute to GLFW_FALSE on Minecraft's GLFW window handle:
glfwSetWindowAttrib(windowHandle, GLFW_AUTO_ICONIFY, GLFW_FALSE);Different Minecraft versions expose the native window through different classes, so each target hooks the version-appropriate window class:
- Modern Fabric, Forge, NeoForge, and Quilt builds inject into com.mojang.blaze3d.platform.Window after <init> and setMode.
- Older and newer modern versions name the native handle field differently, usually window or handle; each version-specific build uses the correct field for that target. For example, the standalone Forge 1.16.5 port injects into net.minecraft.client.MainWindow after <init> and setMode. Meanwhile, the BTA Babric 7.3_04 port injects into net.minecraft.client.render.window.GameWindowGLFW after init and updateWindowState.
Compatibility
Mod Loaders
Game Versions
Screenshots
Similar Mods
EnderLib
This Is a Custom Library for my mods...
Flashbackinstantrecord
This mod adds 3 different keybinds letting you click them to Start and stop flashback in a single click. It also adds 30...
Syz's RPG Mobs
This is an ambitious mod that aims to liven up your Minecraft world! Mobs of all shapes, types and sizes will roam your...
scarpet-webserver
Allows for running webservers with scarpet so they interact with minecraft
StealthPipe
Allows Open to LAN multiplayer to work on more restrictive networks. Supports P2P for significantly less lag when possib...
Better Furnaces
Better Furnaces is a datapack that improves a lifetime [1.21.11 - 26.1.x]