Fix 2 multi-monitor issues
* exwm-workspace.el (exwm-workspace--on-focus-in, exwm-workspace--init): Handle unexpected frame switch in `focus-in-hook'. * exwm-floating.el (exwm-floating--set-floating): If the absolute position is (0, 0) then the relative position is also the same.
This commit is contained in:
parent
c7c233bc35
commit
ddbbeda285
2 changed files with 15 additions and 1 deletions
|
@ -91,7 +91,9 @@
|
|||
(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
|
||||
(when (and frame-geometry
|
||||
(/= x 0)
|
||||
(/= y 0))
|
||||
(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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue