From 4795fad70b751be3b5d5c6d7ba199d8f700d0ad6 Mon Sep 17 00:00:00 2001
From: David Wilson <david@daviwil.com>
Date: Tue, 12 Nov 2019 06:14:29 -0800
Subject: [PATCH] Fix floating window width increase when moving to workspace

* exwm-workspace.el (exwm-workspace-move-window): Deduct 1 pixel from
`frame-pixel-width' of `old-frame' when moving a floating window to another
workspace.  This prevents the floating window from growing in width over
repeated moves.
---
 exwm-workspace.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/exwm-workspace.el b/exwm-workspace.el
index 705da30..bf8655c 100644
--- a/exwm-workspace.el
+++ b/exwm-workspace.el
@@ -938,7 +938,7 @@ INDEX must not exceed the current number of workspaces."
               (set-frame-parameter new-frame 'exwm-container container)
               (make-frame-invisible new-frame)
               (set-frame-size new-frame
-                              (frame-pixel-width old-frame)
+                              (- (frame-pixel-width old-frame) 1)
                               (frame-pixel-height old-frame)
                               t)
               (xcb:+request exwm--connection