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.
This commit is contained in:
Chris Feng 2015-09-24 20:03:57 +08:00
parent 22ee3e6c5f
commit 4ad76b879d

View file

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