mirror of
https://github.com/ch11ng/exwm.git
synced 2024-11-27 13:07:59 +01:00
Fix X display name comparison
* exwm-workspace--add-frame-as-workspace (exwm-workspace--add-frame-as-workspace): Manually compare X display names as there's no built-in function handles this correctly.
This commit is contained in:
parent
2babc8d070
commit
851ed8c280
1 changed files with 5 additions and 2 deletions
|
@ -1164,8 +1164,11 @@ Please check `exwm-workspace--minibuffer-own-frame-p' first."
|
||||||
(exwm--log "Frame `%s' is already a workspace" frame))
|
(exwm--log "Frame `%s' is already a workspace" frame))
|
||||||
((not (display-graphic-p frame))
|
((not (display-graphic-p frame))
|
||||||
(exwm--log "Frame `%s' is not graphical" frame))
|
(exwm--log "Frame `%s' is not graphical" frame))
|
||||||
((not (memq frame (frames-on-display-list (slot-value exwm--connection
|
((not (string-equal
|
||||||
'display))))
|
(replace-regexp-in-string "\\.0$" ""
|
||||||
|
(slot-value exwm--connection 'display))
|
||||||
|
(replace-regexp-in-string "\\.0$" ""
|
||||||
|
(frame-parameter frame 'display))))
|
||||||
(exwm--log "Frame `%s' is on a different DISPLAY (%S instead of %S)"
|
(exwm--log "Frame `%s' is on a different DISPLAY (%S instead of %S)"
|
||||||
frame
|
frame
|
||||||
(frame-parameter frame 'display)
|
(frame-parameter frame 'display)
|
||||||
|
|
Loading…
Reference in a new issue