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

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

[elpa] externals/exwm 4ad76b8 1/2: Fix a calculation error of the positi


From: Chris Feng
Subject: [elpa] externals/exwm 4ad76b8 1/2: Fix a calculation error of the position of a floating frame
Date: Sat, 26 Sep 2015 01:52:21 +0000

branch: externals/exwm
commit 4ad76b879d2f3807828de5345d5da4cac301415d
Author: Chris Feng <address@hidden>
Commit: Chris Feng <address@hidden>

    Fix a calculation error of the position of a floating frame
    
    * exwm-floating.el (exwm-floating--set-floating): The position of a
      floating frame should be relative to its workspace.
---
 exwm-floating.el |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/exwm-floating.el b/exwm-floating.el
index 924f7cf..0994cb9 100644
--- a/exwm-floating.el
+++ b/exwm-floating.el
@@ -135,8 +135,8 @@
               (setq edges nil)))
           (if edges
               ;; Put at the center of leading window
-              (setq x (/ (- (+ (elt edges 2) (elt edges 0)) width) 2)
-                    y (/ (- (+ (elt edges 3) (elt edges 1)) height) 2))
+              (setq x (/ (- (elt edges 2) (elt edges 0) width) 2)
+                    y (/ (- (elt edges 3) (elt edges 1) height) 2))
             ;; Put at the center of screen
             (setq x (/ (- display-width width) 2)
                   y (/ (- display-height height) 2))))))



reply via email to

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