mirror of
https://github.com/emacs-exwm/exwm.git
synced 2024-11-23 13:07:59 +01:00
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:
parent
22ee3e6c5f
commit
4ad76b879d
1 changed files with 2 additions and 2 deletions
|
@ -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))))))
|
||||
|
|
Loading…
Reference in a new issue