From ddbbeda285b3b671ace99f1688e6bd3c3f84c742 Mon Sep 17 00:00:00 2001 From: Chris Feng Date: Thu, 7 Apr 2016 21:03:42 +0800 Subject: 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. --- exwm-floating.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'exwm-floating.el') diff --git a/exwm-floating.el b/exwm-floating.el index a67bc1977ed7..770976d2d32a 100644 --- a/exwm-floating.el +++ b/exwm-floating.el @@ -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" -- cgit 1.4.1