[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/exwm 851ed8c: Fix X display name comparison

From: Chris Feng
Subject: [elpa] externals/exwm 851ed8c: Fix X display name comparison
Date: Mon, 29 May 2017 13:32:30 -0400 (EDT)

branch: externals/exwm
commit 851ed8c280cb9fe47f388773f3ee0ab90815fa99
Author: Chris Feng <address@hidden>
Commit: Chris Feng <address@hidden>

    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.
 exwm-workspace.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/exwm-workspace.el b/exwm-workspace.el
index 3efd084..302e82e 100644
--- a/exwm-workspace.el
+++ b/exwm-workspace.el
@@ -1164,8 +1164,11 @@ Please check `exwm-workspace--minibuffer-own-frame-p' 
     (exwm--log "Frame `%s' is already a workspace" frame))
    ((not (display-graphic-p frame))
     (exwm--log "Frame `%s' is not graphical" frame))
-   ((not (memq frame (frames-on-display-list (slot-value exwm--connection
-                                                         'display))))
+   ((not (string-equal
+          (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)"
                (frame-parameter frame 'display)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]