Home›Java›Mods›Stop Minimizing on Focus Loss
Stop Minimizing on Focus Loss
ModsJava

Stop Minimizing on Focus Loss

Java mod listed for Minecraft 1.16–1.21. Downloads from the MC Java Mods app on Android.

by oggvik · on CurseForge

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21–1.21.11 · Fabric⬇ Download for 1.20.5–1.20.6 · Fabric⬇ Download for 1.20–1.20.4 · Fabric⬇ Download for 1.19.3–1.19.4 · Fabric⬇ Download for 1.19.2 · Fabric⬇ Download for 1.21.9–1.21.11 · NeoForge⬇ Download for 1.21–1.21.8 · NeoForge⬇ Download for 1.20.6 · NeoForge⬇ Download for 1.20.1 · NeoForge⬇ Download for 1.21–1.21.11 · Quilt⬇ Download for 1.20.5–1.20.6 · Quilt⬇ Download for 1.20–1.20.4 · Quilt⬇ Download for 1.19.3–1.19.4 · Quilt⬇ Download for 1.20.6 · Forge⬇ Download for 1.20–1.20.1 · Forge
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
Stop Minimizing on Focus Loss — screenshot 1

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

What it does not do

Minecraft version and mod loader support on CurseForge

On Fabric and Quilt, this mod aims to actively support all Minecraft versions starting from 1.14 to the newest release. Quilt builds are dedicated Quilt ports, not reused Fabric jars.

On Forge, modern GLFW-based ports support 1.13.2, 1.16.5, 1.17.x, 1.18.x, 1.19.x, 1.20.1, and 1.20.6. Legacy LWJGL2 Forge ports are also available for 1.7.10, 1.8.9, and 1.12.x.

On NeoForge, this mod supports 1.20.1, 1.20.6, and versions starting from 1.21 to the newest release.

LiteLoader, Babric, and Better Than Adventure builds are not distributed on CurseForge. Those versions are available on the Modrinth page instead.

The mod has zero dependencies. Even the Fabric version does not use Fabric API.

Technical details

Modern Minecraft versions use LWJGL3 and GLFW. GLFW has a GLFW_AUTO_ICONIFY window attribute which, by default, can minimize a native fullscreen window when it loses focus. The modern ports set 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:

Legacy Forge LWJGL2 ports

Minecraft 1.7.10, 1.8.9, and 1.12.x use LWJGL2, not LWJGL3/GLFW. LWJGL2 does not have GLFW_AUTO_ICONIFY, so the legacy Forge ports cannot use the same one-line GLFW fix.

Instead, the Forge LWJGL2 ports patch the relevant Minecraft and LWJGL2 display code directly:

macOS is the main limitation for LWJGL2 builds. The relevant fullscreen behavior is handled through LWJGL2's native Cocoa backend rather than patchable Java-side display code. Because of that, LWJGL2 macOS support may be limited compared to Linux, Windows, and Unix-like systems such as FreeBSD or OpenBSD. The modern LWJGL3/GLFW ports do not have this same limitation.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more