diff options
author | Chris Feng <chris.w.feng@gmail.com> | 2016-07-30T10·59+0800 |
---|---|---|
committer | Chris Feng <chris.w.feng@gmail.com> | 2016-07-30T10·59+0800 |
commit | b87f4fbd7170ec156d6fa575584f55c25dd1da1b (patch) | |
tree | 0f5d2944e51476148d84e8d51a4770d7d4855928 | |
parent | 8061e93878440a386a5fe308b0829e707e5f8c9d (diff) |
; * exwm.el (exwm-enable): Ignore unrecognized command line arguments.
-rw-r--r-- | exwm.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/exwm.el b/exwm.el index 4c156dcd23e4..692c863559d2 100644 --- a/exwm.el +++ b/exwm.el @@ -681,6 +681,9 @@ This hook is only run when EXWM is started with emacsclient.") (_ ;enable EXWM (setq frame-resize-pixelwise t ;mandatory; before init window-resize-pixelwise t) + ;; Ignore unrecognized command line arguments. This can be helpful + ;; when EXWM is launched by some session manager. + (push #'vector command-line-functions) (add-hook 'window-setup-hook #'exwm-init t) ;for Emacs (add-hook 'after-make-frame-functions #'exwm-init t) ;for Emacs Client (add-hook 'kill-emacs-hook #'exwm--server-stop) |