---
name: "SDL_QuitEvent"
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_QuitEvent"
---

# SDL\_QuitEvent(3)

Quit requested event

## NAME

SDL\_QuitEvent - Quit requested event

## STRUCTURE DEFINITION

```
typedef struct{
  Uint8 type
} SDL_QuitEvent;
```

## STRUCTURE DATA

- **type**

  **SDL\_QUIT**

## DESCRIPTION

**SDL\_QuitEvent** is a member of the **SDL\_Event** union and is used whan an event of type **SDL\_QUIT** is reported.

As can be seen, the SDL\_QuitEvent structure serves no useful purpose. The event itself, on the other hand, is very important. If you filter out or ignore a quit event then it is impossible for the user to close the window. On the other hand, if you do accept a quit event then the application window will be closed, and screen updates will still report success event though the application will no longer be visible.

**Note:**

**The macro SDL\_QuitRequested will return non-zero if a quit event is pending**

## SEE ALSO

**SDL\_Event**, **SDL\_SetEventFilter**
