Prevent certain frame parameters from being saved/restored

* exwm-input.el (exwm-input--init):
* exwm-randr.el (exwm-randr--init):
* exwm-workspace.el (exwm-workspace--init):
Add certain frame parameters into `frameset-filter-alist' to prevent
them from being saved/restored which makes little sense and is
problematic.
This commit is contained in:
Chris Feng 2017-01-03 00:14:33 +08:00
parent b11ac2e6dc
commit 4c043471c5
3 changed files with 16 additions and 3 deletions

View file

@ -767,7 +767,11 @@ Its usage is the same with `exwm-input-set-simulation-keys'."
;; Re-grab global keys.
(add-hook 'exwm-workspace-list-change-hook
#'exwm-input--on-workspace-list-change)
(exwm-input--on-workspace-list-change))
(exwm-input--on-workspace-list-change)
;; Prevent frame parameters introduced by this module from being
;; saved/restored.
(dolist (i '(exwm-grabbed))
(push (cons i :never) frameset-filter-alist)))
(defun exwm-input--exit ()
"Exit the input module."