diff options
Diffstat (limited to 'exwm-core.el')
-rw-r--r-- | exwm-core.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exwm-core.el b/exwm-core.el index 995b590dc582..3215dcdd2c32 100644 --- a/exwm-core.el +++ b/exwm-core.el @@ -155,9 +155,9 @@ Nil can be passed as placeholder." (if height xcb:ConfigWindow:Height 0)) :x x :y y :width width :height height))) -(defun exwm--intern-atom (atom) +(defun exwm--intern-atom (atom &optional conn) "Intern X11 ATOM." - (slot-value (xcb:+request-unchecked+reply exwm--connection + (slot-value (xcb:+request-unchecked+reply (or conn exwm--connection) (make-instance 'xcb:InternAtom :only-if-exists 0 :name-len (length atom) |