mirror of
https://github.com/ch11ng/exwm.git
synced 2024-11-23 19:47:58 +01:00
Fix a position calculation error on multi-monitor settings
* exwm-floating.el (exwm-floating--set-floating): Always use relative positions.
This commit is contained in:
parent
5184f0d7c1
commit
3b518eec23
1 changed files with 9 additions and 2 deletions
|
@ -85,8 +85,15 @@
|
||||||
(x (slot-value exwm--geometry 'x))
|
(x (slot-value exwm--geometry 'x))
|
||||||
(y (slot-value exwm--geometry 'y))
|
(y (slot-value exwm--geometry 'y))
|
||||||
(width (slot-value exwm--geometry 'width))
|
(width (slot-value exwm--geometry 'width))
|
||||||
(height (slot-value exwm--geometry 'height)))
|
(height (slot-value exwm--geometry 'height))
|
||||||
(exwm--log "Floating geometry (original): %dx%d%+d%+d" width height x y)
|
(frame-geometry (frame-parameter original-frame 'exwm-geometry)))
|
||||||
|
(exwm--log "Floating geometry (original, absolute): %dx%d%+d%+d"
|
||||||
|
width height x y)
|
||||||
|
(when frame-geometry
|
||||||
|
(setq x (- x (slot-value frame-geometry 'x))
|
||||||
|
y (- y (slot-value frame-geometry 'y))))
|
||||||
|
(exwm--log "Floating geometry (original, relative): %dx%d%+d%+d"
|
||||||
|
width height x y)
|
||||||
;; Save window IDs
|
;; Save window IDs
|
||||||
(set-frame-parameter frame 'exwm-window-id frame-id)
|
(set-frame-parameter frame 'exwm-window-id frame-id)
|
||||||
(set-frame-parameter frame 'exwm-outer-id outer-id)
|
(set-frame-parameter frame 'exwm-outer-id outer-id)
|
||||||
|
|
Loading…
Reference in a new issue