mirror of
https://github.com/ch11ng/exwm.git
synced 2024-11-27 13:07:59 +01:00
Ignore unmanageable frames
Some frames cannot possibly be workspaces, such as non-graphical ones and those appearing in a different DISPLAY. Ignore them.
This commit is contained in:
parent
31033da460
commit
9919bcab69
1 changed files with 5 additions and 0 deletions
|
@ -257,6 +257,11 @@ The optional FORCE option is for internal use only."
|
|||
(cond
|
||||
((memq frame exwm-workspace--list)
|
||||
(exwm--log "Frame is already a workspace: %s" frame))
|
||||
((not (display-graphic-p frame))
|
||||
(exwm--log "Frame is not graphical: %s" frame))
|
||||
((not (eq (slot-value exwm--connection 'display)
|
||||
(frame-parameter frame 'display)))
|
||||
(exwm--log "Frame is on a different DISPLAY: %s" frame))
|
||||
(t
|
||||
(exwm--log "Adding workspace: %s" frame)
|
||||
(setq exwm-workspace--list (nconc exwm-workspace--list (list frame)))
|
||||
|
|
Loading…
Reference in a new issue