Prevent duplicate keys in frameset-filter-alist

* exwm-workspace.el (exwm-workspace--init):
* exwm-randr.el (exwm-randr--init): Prevent duplicate keys in
frameset-filter-alist
This commit is contained in:
Adrián Medraño Calvo 2018-03-06 00:00:00 +00:00
parent dd0f10775a
commit 4660e040a0
2 changed files with 4 additions and 2 deletions

View file

@ -210,7 +210,8 @@ the first one in result being the primary output."
;; Prevent frame parameters introduced by this module from being ;; Prevent frame parameters introduced by this module from being
;; saved/restored. ;; saved/restored.
(dolist (i '(exwm-randr-output)) (dolist (i '(exwm-randr-output))
(push (cons i :never) frameset-filter-alist))) (unless (assq i frameset-filter-alist)
(push (cons i :never) frameset-filter-alist))))
(defun exwm-randr--exit () (defun exwm-randr--exit ()
"Exit the RandR module." "Exit the RandR module."

View file

@ -1555,7 +1555,8 @@ applied to all subsequently created X frames."
;; saved/restored. ;; saved/restored.
(dolist (i '(exwm-active exwm-outer-id exwm-id exwm-container exwm-geometry (dolist (i '(exwm-active exwm-outer-id exwm-id exwm-container exwm-geometry
exwm-selected-window exwm-urgency fullscreen)) exwm-selected-window exwm-urgency fullscreen))
(push (cons i :never) frameset-filter-alist))) (unless (assq i frameset-filter-alist)
(push (cons i :never) frameset-filter-alist))))
(defun exwm-workspace--exit () (defun exwm-workspace--exit ()
"Exit the workspace module." "Exit the workspace module."