From a59c89d2eca95810bcb42119aeb92b721d201ae9 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Mon, 14 Feb 2022 19:33:28 +0000 Subject: [PATCH] steamcompmgr: Handle X11 errors for other displays Closes: #382 --- src/steamcompmgr.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp index 73f63e2..76aaefb 100644 --- a/src/steamcompmgr.cpp +++ b/src/steamcompmgr.cpp @@ -3892,7 +3892,11 @@ error(Display *dpy, XErrorEvent *ev) } } } - assert(ctx); + if ( !ctx ) + { + // Not for us! + return; + } int o; const char *name = NULL; static char buffer[256];