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:
Urbano Ustero 2015-08-27 20:51:39 +02:00
parent 31033da460
commit 9919bcab69

View file

@ -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)))