about summary refs log tree commit diff
path: root/exwm-systemtray.el
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2018-03-08T17·06+0800
committerChris Feng <chris.w.feng@gmail.com>2018-03-08T17·06+0800
commit2f430db735f33abb4fc009fc6ec8c12f74f57dba (patch)
tree9f147150649943df040d42b0c0da44e849827f59 /exwm-systemtray.el
parent7aae6efdcd5d64c528315d08e49cdef2e956b540 (diff)
Minor fixes
Diffstat (limited to 'exwm-systemtray.el')
-rw-r--r--exwm-systemtray.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/exwm-systemtray.el b/exwm-systemtray.el
index d932032e59..dea5dbbc2e 100644
--- a/exwm-systemtray.el
+++ b/exwm-systemtray.el
@@ -376,6 +376,7 @@ You shall use the default value if using auto-hide minibuffer."
                          :selection xcb:Atom:_NET_SYSTEM_TRAY_S0))
     (when (/= owner xcb:Window:None)
       (xcb:disconnect exwm-systemtray--connection)
+      (setq exwm-systemtray--connection nil)
       (warn "[EXWM] Other system tray detected")
       (cl-return-from exwm-systemtray--init)))
   (let ((id (xcb:generate-id exwm-systemtray--connection)))