emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/exwm 2bb9a5787e 2/2: Use '=' instead of 'eq' to compare


From: ELPA Syncer
Subject: [elpa] externals/exwm 2bb9a5787e 2/2: Use '=' instead of 'eq' to compare numbers.
Date: Wed, 24 Jan 2024 00:57:55 -0500 (EST)

branch: externals/exwm
commit 2bb9a5787ea5b15c8fe4e7c461eb99b412363a16
Author: Steven Allen <steven@stebalien.com>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Use '=' instead of 'eq' to compare numbers.
    
    * exwm.el (exwm--update-desktop):
    * exwm-layout.el (exwm-layout--hide):
      Use `=` instead of `eq` for numeric comparison.
---
 exwm-layout.el | 3 ++-
 exwm.el        | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/exwm-layout.el b/exwm-layout.el
index 47ccf5c519..8649c11ffd 100644
--- a/exwm-layout.el
+++ b/exwm-layout.el
@@ -156,7 +156,8 @@ See variable `exwm-layout-auto-iconify'."
   (with-current-buffer (exwm--id->buffer id)
     (unless (or (exwm-layout--iconic-state-p)
                 (and exwm--floating-frame
-                     (eq 4294967295. exwm--desktop)))
+                     exwm--desktop
+                     (= 4294967295. exwm--desktop)))
       (exwm--log "Hide #x%x" id)
       (when exwm--floating-frame
         (let* ((container (frame-parameter exwm--floating-frame
diff --git a/exwm.el b/exwm.el
index bf074b6f9f..c4900eab48 100644
--- a/exwm.el
+++ b/exwm.el
@@ -176,7 +176,7 @@ Argument XWIN contains the X window of the `exwm-mode' 
buffer."
       (when reply
         (setq desktop (slot-value reply 'value))
         (cond
-         ((eq desktop 4294967295.)
+         ((and desktop (= desktop 4294967295.))
           (unless (or (not exwm--floating-frame)
                       (eq exwm--frame exwm-workspace--current)
                       (and exwm--desktop



reply via email to

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