mirror of
https://github.com/ch11ng/exwm.git
synced 2024-11-24 03:47:59 +01:00
Only add graphic frames to `exwm-manage--frame-outer-id-list'
* exwm-manage.el (exwm-manage--add-frame, exwm-manage--remove-frame): Add checks for graphic frames.
This commit is contained in:
parent
52dc261624
commit
7a5bb1156d
1 changed files with 7 additions and 5 deletions
|
@ -566,14 +566,16 @@ Would you like to kill it? "
|
||||||
|
|
||||||
(defun exwm-manage--add-frame (frame)
|
(defun exwm-manage--add-frame (frame)
|
||||||
"Run in `after-make-frame-functions'."
|
"Run in `after-make-frame-functions'."
|
||||||
|
(when (display-graphic-p frame)
|
||||||
(push (string-to-number (frame-parameter frame 'outer-window-id))
|
(push (string-to-number (frame-parameter frame 'outer-window-id))
|
||||||
exwm-manage--frame-outer-id-list))
|
exwm-manage--frame-outer-id-list)))
|
||||||
|
|
||||||
(defun exwm-manage--remove-frame (frame)
|
(defun exwm-manage--remove-frame (frame)
|
||||||
"Run in `delete-frame-functions'."
|
"Run in `delete-frame-functions'."
|
||||||
|
(when (display-graphic-p frame)
|
||||||
(setq exwm-manage--frame-outer-id-list
|
(setq exwm-manage--frame-outer-id-list
|
||||||
(delq (string-to-number (frame-parameter frame 'outer-window-id))
|
(delq (string-to-number (frame-parameter frame 'outer-window-id))
|
||||||
exwm-manage--frame-outer-id-list)))
|
exwm-manage--frame-outer-id-list))))
|
||||||
|
|
||||||
(defun exwm-manage--on-ConfigureRequest (data _synthetic)
|
(defun exwm-manage--on-ConfigureRequest (data _synthetic)
|
||||||
"Handle ConfigureRequest event."
|
"Handle ConfigureRequest event."
|
||||||
|
|
Loading…
Reference in a new issue