mirror of
https://github.com/emacs-exwm/exwm.git
synced 2025-01-22 16:08:00 +01:00
exwm-enable: Set environment variable INSIDE_EXWM
* exwm.el (exwm-enable): Set environment variable INSIDE_EXWM such that EXWM can be detected inside nested Emacs sessions.
This commit is contained in:
parent
53ea124e99
commit
ac80bf13a9
1 changed files with 2 additions and 0 deletions
2
exwm.el
2
exwm.el
|
@ -1002,6 +1002,7 @@ FRAME, if given, indicates the X display EXWM should manage."
|
|||
(xcb:disconnect exwm--connection))
|
||||
(setq exwm--connection nil)
|
||||
(setq exwm--terminal nil)
|
||||
(setenv "INSIDE_EXWM" nil)
|
||||
(exwm--log "Exited"))
|
||||
|
||||
;;;###autoload
|
||||
|
@ -1025,6 +1026,7 @@ Optional argument UNDO may be either of the following symbols:
|
|||
(setq frame-resize-pixelwise t ;mandatory; before init
|
||||
window-resize-pixelwise t
|
||||
x-no-window-manager t)
|
||||
(setenv "INSIDE_EXWM" "1")
|
||||
;; Ignore unrecognized command line arguments. This can be helpful
|
||||
;; when EXWM is launched by some session manager.
|
||||
(push #'vector command-line-functions)
|
||||
|
|
Loading…
Reference in a new issue