diff options
Diffstat (limited to 'exwm-floating.el')
-rw-r--r-- | exwm-floating.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exwm-floating.el b/exwm-floating.el index 924f7cffca9f..0994cb9914cc 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)))))) |