diff --git a/WINGs/widgets_x11.c b/WINGs/widgets_x11.c index 01ec481..9e2ae95 100644 --- a/WINGs/widgets_x11.c +++ b/WINGs/widgets_x11.c @@ -296,5 +296,7 @@ const W_PlatformBackend W_PlatformBackendX11 = { */ WMNativeAtom W_NativeInternAtom(W_Screen *scr, const char *name) { + if (!scr || !scr->display) + return WM_NATIVE_NONE; return XInternAtom(scr->display, name, False); }