From cff02333e282c692aa685d57cc2b7c32419fffe2 Mon Sep 17 00:00:00 2001 From: Nacho Barrientos Date: Sun, 7 May 2023 12:45:31 +0200 Subject: [PATCH] Don't assume that exwm--connection is non-nil `exwm-input--exit` could be called (via `exwm-exit`) from `exwm-init` in case of error when initialising EXWM. It could happen that the bit that failed when exwm-init is executed was the call to `xcb:connect`, hence `exwm--connection` would be nil when errors are handled (and `exwm-exit` is called). Without this patch, in the case above, the user will see a crash as there's no method allowing a nil XCB connection object: Debugger entered--Lisp error: (cl-no-applicable-method xcb:-+request nil #