# SDL: Do not enable SYSWM\_X11 for QNX

**URL:** <https://discourse.libsdl.org/t/sdl-do-not-enable-syswm-x11-for-qnx/43357>\
**Category:** SDL Commits\
**Created:** [March 27, 2023, 10:34pm UTC](https://discourse.libsdl.org/t/sdl-do-not-enable-syswm-x11-for-qnx/43357 "2023-03-27T22:34:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [March 27, 2023, 10:34pm UTC](https://discourse.libsdl.org/t/sdl-do-not-enable-syswm-x11-for-qnx/43357/1 "2023-03-27T22:34:36Z")

</div>

> <https://github.com/libsdl-org/SDL/commit/c611c6ee6be450528271fff6d92b368952bee3ec>

```diff
From c611c6ee6be450528271fff6d92b368952bee3ec Mon Sep 17 00:00:00 2001
From: Elad Lahav <[EMAIL REDACTED]>
Date: Sat, 7 Jan 2023 21:36:38 -0500
Subject: [PATCH] Do not enable SYSWM_X11 for QNX

---
 include/SDL3/SDL_syswm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/SDL3/SDL_syswm.h b/include/SDL3/SDL_syswm.h
index 8c85bf37afec..72bbd16e0857 100644
--- a/include/SDL3/SDL_syswm.h
+++ b/include/SDL3/SDL_syswm.h
@@ -106,7 +106,7 @@
 #endif /* !SDL_DISABLE_SYSWM_WINRT */
 
 #ifndef SDL_DISABLE_SYSWM_X11
-#if defined( __unix__ ) && !defined( __WIN32__ ) && !defined( __ANDROID__ )
+#if defined( __unix__ ) && !defined( __WIN32__ ) && !defined( __ANDROID__ ) && !defined( __QNX__ )
 #define SDL_ENABLE_SYSWM_X11
 #endif
 #endif /* !SDL_DISABLE_SYSWM_X11 */

```
