Fix `exwm-layout-enlarge-window' for floating X windows

* exwm-layout.el (exwm-layout-enlarge-window): Correct the height of
outer frame.
This commit is contained in:
Chris Feng 2019-09-15 00:00:00 +00:00
parent 16d643dd3b
commit 988f983233

View file

@ -468,7 +468,7 @@ windows."
:width width)) :width width))
(xcb:flush exwm--connection)))) (xcb:flush exwm--connection))))
(t (t
(let* ((height (frame-pixel-height)) (let* ((height (+ (frame-pixel-height) exwm-workspace--frame-y-offset))
(edges (window-inside-pixel-edges)) (edges (window-inside-pixel-edges))
(inner-height (- (elt edges 3) (elt edges 1))) (inner-height (- (elt edges 3) (elt edges 1)))
(margin (- height inner-height))) (margin (- height inner-height)))