about summary refs log tree commit diff
path: root/third_party/exwm/exwm-background.el
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2023-10-09T07·12+0300
committerVincent Ambo <mail@tazj.in>2023-10-09T07·12+0300
commit5f53841a343f0f2b5a66f9d58739b19a2e81dcb9 (patch)
tree16ce612b7d3b0311265d9ad8a4bc264b8773c945 /third_party/exwm/exwm-background.el
parenta63f99135142e103afe51ee0e9b211f7a065633d (diff)
parent56db521a3ed6a2ccc1193110a56545a1992e9654 (diff)
subtree(3p/exwm): bump exwm to upstream commit '56db521a' r/6746
This bumps us past EXWM 0.28, which has several major fixes.

Change-Id: Ie89997cc5d60f4e5aaedfe60368571420b7e4b9d
Diffstat (limited to 'third_party/exwm/exwm-background.el')
-rw-r--r--third_party/exwm/exwm-background.el8
1 files changed, 3 insertions, 5 deletions
diff --git a/third_party/exwm/exwm-background.el b/third_party/exwm/exwm-background.el
index e7a0360c97..9c9bc5e352 100644
--- a/third_party/exwm/exwm-background.el
+++ b/third_party/exwm/exwm-background.el
@@ -1,6 +1,6 @@
 ;;; exwm-background.el --- X Background Module for EXWM  -*- lexical-binding: t -*-
 
-;; Copyright (C) 2022 Free Software Foundation, Inc.
+;; Copyright (C) 2022-2023 Free Software Foundation, Inc.
 
 ;; Author: Steven Allen <steven@stebalien.com>
 
@@ -172,19 +172,17 @@ replace it.")
 (defun exwm-background--init ()
   "Initialize background module."
   (exwm--log)
-
   (add-hook 'enable-theme-functions 'exwm-background--update)
   (add-hook 'disable-theme-functions 'exwm-background--update)
-
   (exwm-background--update))
 
 (defun exwm-background--exit ()
   "Uninitialize the background module."
   (exwm--log)
-
   (remove-hook 'enable-theme-functions 'exwm-background--update)
   (remove-hook 'disable-theme-functions 'exwm-background--update)
-  (when exwm-background--connection
+  (when (and exwm-background--connection
+             (slot-value exwm-background--connection 'connected))
     (xcb:disconnect exwm-background--connection))
   (setq exwm-background--pixmap nil
         exwm-background--connection nil