---
name: "SDL_WM_IconifyWindow"
section: "3"
platform: "linux"
package: "libsdl1.2-dev"
version: "1.2.15+dfsg2-8"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_WM_IconifyWindow"
---

# SDL\_WM\_IconifyWindow(3)

Iconify/Minimise the window

## NAME

SDL\_WM\_IconifyWindow - Iconify/Minimise the window

## SYNOPSIS

**#include "SDL.h"**

**int SDL\_WM\_IconifyWindow**(**void**);

## DESCRIPTION

If the application is running in a window managed environment SDL attempts to iconify/minimise it. If **SDL\_WM\_IconifyWindow** is successful, the application will receive a **SDL\_APPACTIVE** loss event.

## RETURN VALUE

Returns non-zero on success or **0** if iconification is not support or was refused by the window manager.
