---
name: "SDL_SysWMEvent"
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_SysWMEvent"
---

# SDL\_SysWMEvent(3)

Platform-dependent window manager event.

## NAME

SDL\_SysWMEvent - Platform-dependent window manager event.

## DESCRIPTION

The system window manager event contains a pointer to system-specific information about unknown window manager events. If you enable this event using **SDL\_EventState()**, it will be generated whenever unhandled events are received from the window manager. This can be used, for example, to implement cut-and-paste in your application.

```
typedef struct {
         Uint8 type;   /* Always SDL_SysWM */
 } SDL_SysWMEvent;
```

 If you want to obtain system-specific information about the window manager, you can fill the version member of a **SDL\_SysWMinfo** structure (details can be found in **SDL\_syswm.h**, which must be included) using the **SDL\_VERSION()** macro found in **SDL\_version.h**, and pass it to the function:

**int SDL\_GetWMInfo**(**SDL\_SysWMinfo \*info**);

## SEE ALSO

**SDL\_EventState**
